Cookie Test

Discussion in 'ASP .Net' started by Aaron Fleming, May 26, 2005.

  1. 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
     
    Aaron Fleming, May 26, 2005
    #1
    1. Advertisements

  2. 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_forms_authentication.aspx
    or
    http://www.devhood.com/tutorials/tutorial_details.aspx?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:...
    > 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
    >
     
    Duane Laflotte, May 26, 2005
    #2
    1. Advertisements

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ben
    Replies:
    3
    Views:
    6,230
    Steven Cheng[MSFT]
    Jun 3, 2004
  2. Shapper

    Cookie and Session Cookie Questions.

    Shapper, Apr 27, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    774
  3. =?Utf-8?B?UGF1bA==?=

    Cookie Question (IP as domain and cookie file location)

    =?Utf-8?B?UGF1bA==?=, Jan 10, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    2,739
    Bruce Barker
    Jan 10, 2006
  4. ad
    Replies:
    2
    Views:
    8,819
    Kevin Spencer
    Jan 27, 2006
  5. =?Utf-8?B?TnVubw==?=

    Convert a PHP cookie to an ASP.NET cookie

    =?Utf-8?B?TnVubw==?=, Jan 31, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    583
    =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
    Jan 31, 2006
  6. =?Utf-8?B?amVycnkueHVkZGQ=?=

    session cookie and presist cookie?

    =?Utf-8?B?amVycnkueHVkZGQ=?=, Mar 7, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    658
    =?Utf-8?B?RGFycmVuIEtvcHA=?=
    Mar 8, 2006
  7. ken
    Replies:
    1
    Views:
    347
    John J. Lee
    Apr 1, 2007
  8. Skybuck Flying

    Call oddities: &Test() vs &Test vs Test

    Skybuck Flying, Oct 4, 2009, in forum: C Programming
    Replies:
    1
    Views:
    1,042
    Skybuck Flying
    Oct 4, 2009
Loading...