Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics 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 November 27th, 2005, 04:35 AM
Authorized User
 
Join Date: Oct 2005
Location: , , Malaysia.
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to richie86
Default login page. cookie handling.

when we do a sign in page, how we do to remain the user is in sign in mode by using cookie? unless he/she sign out only the form will return to the normal mode.

Example. in a form, after user sign in will show this on a label.
Welcome Mr John.

no matter how many time post back or refresh it will still the same, even close the page and reopen the same page.

Any help would be appreciated.


Goh Hoang Yuh
- C# Beginner in ASP.NET
 
Old November 27th, 2005, 05:13 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: Copenhagen, , Denmark.
Posts: 440
Thanks: 0
Thanked 0 Times in 0 Posts
Default

As far as I understand you are using cookies directly to manage if a user is logged on or not. I think you should have a look at the Session class, and use that for handling the login.

When a user is logged on the Session object persists until it times out or the Session.Abandon() method is called. Try something like this to get more information...

http://www.google.com/search?q=sessi...+asp.net&meta=

Hope it helps,
Jacob.




Similar Threads
Thread Thread Starter Forum Replies Last Post
Session/Cookie Expires, Login page appears rajn ASP.NET 1.0 and 1.1 Professional 3 June 27th, 2007 06:19 AM
Cookie Handling mahulda General .NET 1 August 23rd, 2004 06:58 AM
How to write a cookie during a login session taoree ASP.NET 1.0 and 1.1 Basics 3 April 18th, 2004 02:40 PM
login cookie help daddycool2k Classic ASP XML 26 December 4th, 2003 10:45 AM
login cookie help daddycool2k ASP.NET 1.0 and 1.1 Basics 0 November 16th, 2003 03:17 PM





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