PDA

View Full Version : passing variables


charlieb
12-25-2004, 05:54 PM
I am trying to pass information specifically password and username, after deleting a record. I know that once the record is deleted the recordset is empty but I was hoping that there was a way to store the information in a variable that won't lose it after deleting the record. I don't want to use cookies. Does anyone know how to hold the information in a variable even after deleting the record?

What I am doing is showing a list of the users records and allowing the user to delete the records individually, but once the record is deleted I can't get and pass the username and password back to the server to return to the list of that users records unless the user re-enters password and username info. As I'm sure you guessed, I am still pretty new to this stuff. Any help is appreciated.

selwonk
12-28-2006, 05:37 PM
Simplest way would be to store the username and password in a session variable. This will exist (without being refreshed) for the amount of time configured on the server. By default this is 20 minutes IIRC. See:

http://www.w3schools.com/asp/asp_sessions.asp