hi,
i ll create a session for a program and save the login time.
how can i give the session expire time and where can i give it.
Thanks
hi,
i ll create a session for a program and save the login time.
how can i give the session expire time and where can i give it.
Thanks
There is a nice thread at http://www.daniweb.com/forums/showthread.php?t=185571&highlight=session+expire
and to change the session expiry time (if the session id is not in the url) you can simply use the following code:
<?
session_start();
setcookie(session_name(), $_COOKIE[session_name()], time()+600, '/');
Hope that helps.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.