Page 1 of 1

Intelligent Session Handling

Posted: Mon Oct 07, 2002 7:02 pm
by r_mcg
Can anybody suggest a resource that talks about intelligent session handling?

I have found plenty of tutorials about handling sessions for one page (marginally useful :D ), but nothing that ties it all together for a whole site. I want to use a database for my session storage, and I know all about the six functions. What I need is more page by page, expecially how to keep sessions with new browser windows and across domain changes. What functions have to be called repeatedly for each page? How does one us $_SESSION? Can everyone else 'unset' $_SESSION variables cause that never works for me?

Where can I find information to design the complete package?

Thanks,
Rudye
rudye@einsteinseyes.com

Posted: Tue Oct 08, 2002 8:30 am
by rev
Just a thought...

Since you are running into difficulty finding a suitable tutorial, maybe taking a peak at a similar implementation of your session/database idea/desire will give you the insight that you seek.

Download the source to phpBB, and follow how they handle sessions using a DB table. This might not be the best example for you, but it will at least give you an idea how someone else envisioned session management.

http://www.phpbb.com/downloads.php