Jump to content

How to detect auto logout event?

Recommended Posts

I have a script that logs to a site and works with it , but if the user is inactive for a certain time the site has logged out the user. How can i easily detect that and start the login procedure when needed?

Link to comment
Share on other sites

I really don't have a good idea but it would not surprise me If there is a string on the website which says something like "Welcome %username%" or similar. If this is the Case Then you could do an search for that string.

It might also be possible that the website uses cookies which dissapears after a While.

Edited by colafrysen
[font="Impact"]Use the helpfile, It´s one of the best exlusive features of Autoit.[/font]http://support.microsoft.com/kb/q555375ALIBI Run - a replacement for the windows run promptPC Controller - an application for controlling other PCs[size="1"]Science flies us to the moon. Religion flies us into buildings.[/size][size="1"]http://bit.ly/cAMPZV[/size]
Link to comment
Share on other sites

At the moment i do it the clumsy way as:

1.Navigate to the same address

2.Check if you are redirected to the login page - if yes the autologout has accured

3.Do the login procedure and continue

But there has to be a better way.More elegant way.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...