SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Hybrid View

  1. #1
    SitePoint Enthusiast
    Join Date
    Apr 2005
    Posts
    45
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    i have trouble with session tracking (logout)

    hello friends

    i am now working with a project.my login page and rest of pages are working correctly.
    my logout page looks like this:

    <%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
    <%
    Response.Buffer=True
    session.Abandon()
    response.Clear()
    Response.Redirect("../admin/index.asp")
    %>

    when i logout it logs out. but when i click back button of browser ,it will take you to previous page.however the links will not work, but i can view the page.
    could anybody please tell me how to block this .

    ihave also added Response.Expires=-1000 in all the pages

    thank you
    waiting for any response

  2. #2
    SitePoint Wizard gRoberts's Avatar
    Join Date
    Oct 2004
    Location
    Birtley, UK
    Posts
    2,439
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This is your cache holding the current page, All you can do is stop the user from using the back button. But to be honest this shouldn't worry you because when the user goes to press a link, the session has died so nothing can be executed.

    Gavin

  3. #3
    SitePoint Enthusiast hombre_de_las_ca's Avatar
    Join Date
    Apr 2005
    Location
    Bangalore, India
    Posts
    90
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Anish, i used the server side script on my log out page give on this page...try it out..
    http://www.4guysfromrolla.com/webtech/111500-1.shtml
    this may help..
    CaveMan
    Don't ask what your Country can do for you,
    Ask what you can do for your Country.

  4. #4
    SitePoint Enthusiast
    Join Date
    Apr 2005
    Posts
    45
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    sir, thank you for the help. i have been looking for a solution for so long.

    your code works perfectly.

    sir, is there any way to find whether client side downloading is completed or not.






    Quote Originally Posted by hombre_de_las_ca
    Anish, i used the server side script on my log out page give on this page...try it out..
    http://www.4guysfromrolla.com/webtech/111500-1.shtml
    this may help..
    CaveMan


Bookmarks

Posting Permissions

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