Hi,
I tried to expire a session by using the setcookie() function and passing the time parameter during which I want the cookies to be active. The problem is that the cookies are still active (active until they reach their expiration time)even if the browser is closed ( a case when someone forgets to sign out but closes the browser) and you can see the contents and access information just by re-visiting the link.
Is there any way by which I can expire the session. At the same time making sure that the session cookies get expired as soon as the browser is closed even if someone forgets to sign out.
Is there any way I can ask the user that the session is about to time out and whether he/she wish to still continue? If the user says "Yes" the session should not time out.
Your help is appreciated.
Greg