Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Caching / August 2004

Tip: Looking for answers? Try searching our database.

Issue with login-password in a web page

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Rheadore - 23 Aug 2004 14:00 GMT
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.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.