...

View Full Version : How to code using sessions in PHP



bharath120
02-06-2007, 05:09 AM
Hi,

Iam new to PHP,I created one login page and one logout page...

now i want to use session timeout for logout page...........





please help me hw to code using sessions .............

plz help........

SNC-Zach
02-06-2007, 09:02 AM
To use sessions on every page, you have to initialize the page with session_start(); otherwise session variables will not be accessible, all that needs to happen to terminate the session is session_destroy(); and array_walk($_SESSION,'unset'); the same with $_COOKIE if you set one.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum