Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Auto press enter if Cookie is present

Status
Not open for further replies.

Ragol1

Programmer
Oct 25, 2001
315
US
I have a login page that users get directed to when the page times out, at the moment it will remember the login and password so all they have to do is press enter.

Is there a way for it to just see that they are filled in and press enter for them, maybe they wouldnt even see the page unless they need to fill it in.

Thanks

Nick
 
Lots of ways you could do this. I don't think there is a way to automatically press enter. You need to bypass the login part of the script if it isn't needed. In order to do that you need to work out in what circumstances the login isn't required.

Depending on what server technology you are using you should be able to check server side if they are logged in or not by looking for some sort of Username or password variable.

Then using that you could direct them to a different page that doesn't require them to log on again each time the page "times-out".

I presume you are using a logon script that pops up a window for the login, not using a form on the page. If that is the case, you can probably use a script to skip the login process altogether.

You could also use sessions or a cookie with session expiry.

Hope this is of some help!

%-)
--
Dunx
 
Its a login page using ASP that directs then using a Database to a specific page.

Any ideas?

Nick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top