Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Remembering the usersname

Status
Not open for further replies.

mbutler55

Instructor
Feb 5, 2003
33
US
I can get a user's name from a log in page no problem. I have strName = Session ("Username")

I then have if the user name is "guest" (strName="guest") then go to a different server which is my guestbook to log personal information.

Here is the problem, after returning to the main menu page from the guestbook log in page (which is on a different server), the Session ("Username") is no longer "guest." Where could I store the Session ("Username") so that it is remembered until I deliberately delete it upon completion of their time at my website? If this can be done exactly how is it done?

Welcome Screen
|
Login Screen -> a guest go to guestbook on different server
| |
| |
Main Menu <----------- (but remember &quot;guest&quot;)
 
You can store it in a cookie, then specify the domain in the cookie with the username. When user comes back, then get that value from cookie.
My daily story these days:
9am [pc2] => 3p [flush] => 6p [pc2] => 10p [yawn2] 12a [hammer] => 1a [pc1] 3a [sleeping] => fri [cheers]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top