Click here to Skip to main content
15,898,371 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more: (untagged)
Hi All,
I involved in developing a web project, I do login page to new users can registered on my web page. the problem how I can user maintain in all pages he navigate to. any help plz.

Regards
Posted

Session variables are the best option to use it.Also you can use some database for logging the details of every user.

 
Share this answer
 
As the others have mentioned, use session variables. Do make sure when you are done with the user's session variable to delete it when finished. Otherwise, you will eventually (as this may take a very long time to have happen) run out of memory on the server where the values are kept.

 
Share this answer
 
The one step no-one else mentioned, is to create a new base page, which redirects to the login page if the user is not already logged in. From there, it just works.

 
Share this answer
 


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