Click here to Skip to main content
15,886,664 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am having my website in PHP , I am managing user login using session. Everything goes fine with desktop browsers but when using mobile handsets it fails to work properly.

Problem ocuuring is : "After we do log out ideally the session should expire by using session_destroy() . And then if we try go to previous page using back button ideally should not show the page since we have been logged out. But here having being done logout it still shows previously opened session pages containing login information"
Posted
Comments
Sandeep Mewara 29-Sep-12 8:54am    
So, are you using session_destroy to clear out the session? Or expecting it to happen by itself?
[no name] 29-Sep-12 12:13pm    
I have used session_destroy() , still it is not happening : just in case of mobile browsers. Rest all things are going fine.

1 solution

Session management over mobile browsers is tricky. You will do all the programming right but still there would be unpredictable result. Thus use the most robust solution. An ideal Solution to this would be use COOKIES instead of session which would solve your problem.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900