Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. ATL / WTL / STL
  4. how to change toolbar in session expiary

how to change toolbar in session expiary

Scheduled Pinned Locked Moved ATL / WTL / STL
databasequestionmysqlhelptutorial
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    rindam
    wrote on last edited by
    #1

    Hi Actually I have created a toolbar for IE which will be changed after user loggs into our site and will be changed again after he logs out.These things I have done ,but the problem comes when it is session expiry.if the user does not do anything for 20 minutes in our site,then the session will expire and according to that the toolbar should also be changed again.How can I achieve that?My idea was to get the cookie value for that user when he logs in and firing a MySql query with the cookie value to our database each time when there is a page navigation or page refresh.If my query returns with no value,then it will mean that session has expired and according to that I will change the toolbar.I am retrieving the cookie value.But there are some problems: 1.I need to fire the query in DownloadBegin or DownloadComplete,but this is making IE very slow and IE is crashing.Moreover what I have dicovered is that,in IE6 if I dont do a page refresh or site navigation,simply if i just move the mouse over the page,then also the flow is coming to downloadbegin too many times,means that many times the query will be fired......oooops..that will be dangerous.where should I fire the query then?

    Y 1 Reply Last reply
    0
    • R rindam

      Hi Actually I have created a toolbar for IE which will be changed after user loggs into our site and will be changed again after he logs out.These things I have done ,but the problem comes when it is session expiry.if the user does not do anything for 20 minutes in our site,then the session will expire and according to that the toolbar should also be changed again.How can I achieve that?My idea was to get the cookie value for that user when he logs in and firing a MySql query with the cookie value to our database each time when there is a page navigation or page refresh.If my query returns with no value,then it will mean that session has expired and according to that I will change the toolbar.I am retrieving the cookie value.But there are some problems: 1.I need to fire the query in DownloadBegin or DownloadComplete,but this is making IE very slow and IE is crashing.Moreover what I have dicovered is that,in IE6 if I dont do a page refresh or site navigation,simply if i just move the mouse over the page,then also the flow is coming to downloadbegin too many times,means that many times the query will be fired......oooops..that will be dangerous.where should I fire the query then?

      Y Offline
      Y Offline
      yytg
      wrote on last edited by
      #2

      Timer?!

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups