Issue with login-password in a web page

R

Rheadore

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.
 
S

Scott Allen

Hi Rheadore,

This would be a feature of the browser and not something you could do
from ASP.NET on the server side.
 
A

Alan Ferrandiz [MCT]

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,521
Members
44,995
Latest member
PinupduzSap

Latest Threads

Top