pauldboughter Posted April 22, 2010 Share Posted April 22, 2010 I am using a Access file to store usernames. after I type in the user name and log in I want the username to display on everypage after that till they log off. I am kinda stumped right now as to the code I need to write to do this. Can anyone help? I am doing this as an application vice a web page. Link to comment Share on other sites More sharing options...
Ccssrs69 Posted May 28, 2010 Share Posted May 28, 2010 I am using a Access file to store usernames. after I type in the user name and log in I want the username to display on everypage after that till they log off. I am kinda stumped right now as to the code I need to write to do this. Can anyone help? I am doing this as an application vice a web page.Store the user name in a session variable. And call that session variable on each page. When they log out make sure to clear the session variable. Link to comment Share on other sites More sharing options...
chibineku Posted May 29, 2010 Share Posted May 29, 2010 You could also set the username to a cookie, if you want the user to be able to remain logged in for a whole day, a week, or whatever period of time. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.