to session, or not to session

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
hob_goblin
Forum Regular
Posts: 978
Joined: Sun Apr 28, 2002 9:53 pm
Contact:

to session, or not to session

Post by hob_goblin »

well, I'm trying to make my member system for my site work with the member system of my board...

i'm looking into phpbb and "invision board"

i've noticed they both use sessions and cookies to track users
I know how to get all the tables in mySQL to work together, but I can't figure out if i HAVE to start the sessions as well as setting the cookie? (I want a user to be able to login to my site, and not get re-directed to the forums)

Also, does anybody have experience with invision board? Or would anybody like to help me try to figure it out to work with either of these forums?
kaizix
Forum Commoner
Posts: 50
Joined: Tue Jun 18, 2002 9:16 pm
Location: california
Contact:

Post by kaizix »

the cookie just maintains the sessions so that it's not passed in the urls.
User avatar
hob_goblin
Forum Regular
Posts: 978
Joined: Sun Apr 28, 2002 9:53 pm
Contact:

Post by hob_goblin »

:D so i wouldn't need to mess with the sessions if i just wanted someone to automatically log in when they visited?
kaizix
Forum Commoner
Posts: 50
Joined: Tue Jun 18, 2002 9:16 pm
Location: california
Contact:

Post by kaizix »

to automatically log in? no. you could use cookies for that. of course, if you wanted to maintain a logged in status over pages, you may want to use sessions.
Last edited by kaizix on Wed Jun 19, 2002 7:39 pm, edited 1 time in total.
User avatar
hob_goblin
Forum Regular
Posts: 978
Joined: Sun Apr 28, 2002 9:53 pm
Contact:

Post by hob_goblin »

i only need cookies for my main site..
Post Reply