Results 1 to 4 of 4

Thread: How do you not let the user back into the sit

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2001
    Posts
    118

    Question

    Hi again.

    I would like to know. If the user log off your site. How do you stop him (or the website) not to go back (click the back button or with his history)

    Thanks

  2. #2
    Lively Member bhaskerg's Avatar
    Join Date
    Mar 2001
    Location
    india
    Posts
    68

    Cool

    i hope u r maintaning some id like userid to keep track of the user...so when the user logs off set this userid to 0 or make it empty....and in all u'r screens (ofcourse other than the login screen) check for a non-zero or non-empty userid before showing !!!

    Hope this helps !!!

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jan 2001
    Posts
    118
    Thanks for the reply.

    The problem I had was. I set the userID = "" and in my include files I check the userID.

    But when I log off, i exit the system. But then I press back on my brower and then I'm back in. Can see all my pages i visited. It is like i never left the site.

    Is it with my code, or with IIS maybe?

  4. #4
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379
    Assuming your storing the userID in the session object, you should use Session.Abandon in your logoff page.
    oOOo--oOOo
    __/\/\onte96
    oOOo--oOOo
    Senior Programmer/Analyst
    MCP
    [email protected]
    [email protected]


    Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width