If you mean storing any value in the Cache Object then it would't be a correct solution. The Cache object is global to the application (similar to the Application Object, but allow you to set expiration, dependencies, etc), so every user would access the same values.
In your scenario you could use a cookie (storing encrypted values) if you want to persist that password even after the session expires
In your case I understand you want to use Session objects, you could check for the existence of that Session object every time you want to use that stored password
in the login form:
Session("myPassword") = txtPassword.Text.Trim
for password retrieval:
'check for a valid user Id, and if validation succeeds retrieve password
if Session("myPassword") Is Nothing Then
txtPassword.Text.Trim = Session("myPassword")
End If
Hope this helps
Alan Ferrandiz Langley
www.geekswithblogs.com/aferrandiz
"Rheadore" <an*******@discussions.com> escribió en el mensaje news:O4*************@tk2msftngp13.phx.gbl...
Hi ,
Please give me any links/examples to create a page which can store my
password in cache, call that cache when I enter my userid, automatically
insert my password in the text box later.
Please suggest.