Wrox Programmer Forums
|
ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.1 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 6th, 2005, 04:26 AM
Friend of Wrox
 
Join Date: Aug 2004
Posts: 550
Thanks: 0
Thanked 1 Time in 1 Post
Default Please help.............

Hi friends

I am buliding a website with asp.net and other scripts like javascript, html.

What I want to know is the concept behind the option remember password below the login box and HOW DO I SET THE LOG OUT BUTTON so that when we hit the back button of browser, user is not able to login to his account again.

by the way, I am using direct database authentication via oracle to check username password.

Thanks

__________________
Regards
Mike
 
Old January 6th, 2005, 04:54 AM
Friend of Wrox
 
Join Date: Dec 2004
Posts: 307
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Vadivel Send a message via Yahoo to Vadivel
Default

I am afraid you need to explain the issue more clearly.
Are you looking for the script to be written for "Log out" button/link or anything else?

Best Regards
Vadivel

MVP ASP/ASP.NET
http://vadivel.thinkingms.com
 
Old January 7th, 2005, 12:24 AM
Friend of Wrox
 
Join Date: Aug 2004
Posts: 550
Thanks: 0
Thanked 1 Time in 1 Post
Default

Yes Vadivel

I need to know what script or code I should write for the logout button say if I write document.location="backtologinpage", the user will be redirected to the login page, but if he hits the back button of the browser, he can again see his inbox. How to stop that

Secondly, if possible please explain the concept of Remember password like that we have on wrox login itself.

Thanks


 
Old January 7th, 2005, 12:38 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

"Remember me" is nothing more than saving some unique identifier for the user in a regular cookie. You could save the username and password in a cookie, or something like a GUID (an identifier that's not easily spoofed). Then when your login page loads, it first checks to see if this identifier (or username/password) is being passed in the cookie and you perform an auto-logon.

Regarding the back button issue: You'll have to play with page caching to eliminate this problem. If you set the page expiration to immediate or in the past (with an explicit time) then the browser will hopefully be forced to re-request the page when you hit 'back'. Since you have logged out, this would force you back to the login page.
 
Old January 7th, 2005, 04:35 AM
Friend of Wrox
 
Join Date: Dec 2004
Posts: 307
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Vadivel Send a message via Yahoo to Vadivel
Default

Session.Abandon() and then do a response.redirect to your deried page.

Best Regards
Vadivel

MVP ASP/ASP.NET
http://vadivel.thinkingms.com









Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.