Posts: 1,832
Location: Somewhere else entirely
|
How do you currently read back the cookie details? Can we see the other page to which this info has to get to?
Sessions are simple enough - you need to call session_start() on every page you want to have sessions enabled, making sure to do this before any html output as it involves changing headers (the same as setting cookies, which is how sessions usually work internally). Then you can get and set items in the $_SESSION array, and rertrieve them on any page on which you have called session_start(). When you want to log someone out call session_start() again to call up the right session info and then session_destroy() to end it.
__________________
UPDATE 0beron SET talkupation = talkupation + lots WHERE post = 'helpful';
Please login or register to view this content. Registration is FREE (aka MSN handwriting for forums)
|