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 Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Maintaining password value when doing a refresh...

Status
Not open for further replies.

booboo0912

Programmer
Jul 31, 2002
75
US
I'm having a problem and there's gotta be an easy fix b/c I know it's a common occurrance...

I have a logon form (logon.asp) that has username and password textboxes. The action="admin.asp", and on this page the values of the username and password are compared to the values in a database. Once the username and password are typed correctly, admin.asp opens and from here the user can select which record they would like to modify/delete. A record is selected, a showModalDialog window is opened, the record is updated or deleted, and on submit, the window closes, and the admin.asp window is still open.

I'm trying to refresh the admin.asp window automatically, instead of clicking the refresh button, to show the updated record. I tried the <META HTTP-EQUIV=refresh> but then it gets stuck going back to the logon.asp window, I guess b/c the values of the username and password aren't valid at that point (which I don't understand b/c I never reset the values of the variables). How do I maintain the username and password variables on a refresh? Or is there another way I should be refreshing my window?
Thanks in advance!
booboo
 
Do you have the same problem if you do a manual refresh by &quot;F5&quot; or a click on the refresh button. Water is not bad as soon as it stays out human body ;-)
 
When I hit F5 or click the refresh button, I get the alert box that says, &quot;The page cannot be refreshed without resending the information. Click Retry to send the information again, or click Cancel to return to the page that you were trying to view.&quot;

When I click Retry, that's when the updates show up.
 
ok, i'm still stuck on this one...but i'm trying to come up with different ways to do this. does anyone know if it's possible to simulate the refresh button in code?
 
If you put the login name and password in session variables in your log in validation code, then check each time the page is (re)loaded to see if the session variables have values already in them, they'll last as long as the person logged in has the browser open, there is no activity for the timeout period, or until you delete the session variables.
 
AH-HA! THANK YOU trollacious! i haven't worked with session variables before, but it sounds like it's what i'm looking for!!! i'll get my book out! :)

thanks again!! have a great day!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top