Jump to content

Showing Logged in status


pauldboughter

Recommended Posts

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

  • 1 month later...
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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...