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.
Scott Allen - 23 Aug 2004 15:09 GMT
Hi Rheadore,
This would be a feature of the browser and not something you could do
from ASP.NET on the server side.
--
Scott
http://www.OdeToCode.com
>Hi ,
>
[quoted text clipped - 3 lines]
>
>Please suggest.
Alan Ferrandiz [MCT] - 23 Aug 2004 15:10 GMT
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
> Hi ,
>
[quoted text clipped - 3 lines]
>
> Please suggest.