Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Cookie Test

Reply
Thread Tools

Cookie Test

 
 
Aaron Fleming
Guest
Posts: n/a
 
      05-26-2005
In classic ASP I have set a session variable, redirected to another
page and requested the session variable. If it wasn't there ...
redirect accordingly .. if so .. log in ..

Is there a way to quickly test for session/cookies in ASP.NET

 
Reply With Quote
 
 
 
 
Duane Laflotte
Guest
Posts: n/a
 
      05-26-2005
Aaron,
If you are looking to check to see if a user is logged in or not by
using session/cookies then what you want to look at is called forms
authentications. Basically the process you describe for your classic asp
now is done for you automatically in asp.net as long as you setup the
web.config file properly.
Here is a link that will walk you through the process...
http://www.codersource.net/asp_net_f...ntication.aspx
or
http://www.devhood.com/tutorials/tut...tutorial_id=85


Good Luck,

--
Duane Laflotte
MCSE, MCSD, MCDBA, MCSA, MCT, MCP+I

http://www.criticalsites.com/dlaflotte


"Aaron Fleming" <> wrote in message
news: oups.com...
> In classic ASP I have set a session variable, redirected to another
> page and requested the session variable. If it wasn't there ...
> redirect accordingly .. if so .. log in ..
>
> Is there a way to quickly test for session/cookies in ASP.NET
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cookie Question (IP as domain and cookie file location) =?Utf-8?B?UGF1bA==?= ASP .Net 1 01-10-2006 08:37 PM
Any downsides to cookie assignment inside custom class using HttpContext.Current? ASP.NET 2.0 cookie fix? ASP .Net 2 08-17-2005 06:43 AM
Cookie and Session Cookie Questions. Shapper ASP .Net 1 04-27-2005 11:20 AM
Session cookie? Browser instance cookie? Ben ASP .Net 3 06-03-2004 03:41 AM
test test test test test test test Computer Support 2 07-02-2003 06:02 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57