Juvigy Posted May 29, 2009 Share Posted May 29, 2009 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 More sharing options...
colafrysen Posted May 29, 2009 Share Posted May 29, 2009 (edited) 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 May 29, 2009 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 More sharing options...
Juvigy Posted May 30, 2009 Author Share Posted May 30, 2009 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now