Session Variables Unreliable? Please help!

Discussion in 'ASP General' started by RyanRitten, Dec 28, 2007.

  1. RyanRitten

    RyanRitten Guest

    I am making a website where users must log in. I want to somehow
    remember they are logged in regardless of what links they click on the
    site. I've read the best way to do this is to use session variables.
    Each page will check to see if a certain session variable exists and
    if it does, they are logged in.

    I thought this is how all websites with log in pages do it. But then
    I read that sesion variables place a cookie on the clients computer.
    What happens if the client has cookies turned off? It appears that
    session variables will not get saved and if a user clicks on a link
    they will be told they are no longer logged in.

    What am I missing? How do all the websites out there that require you
    to be logged in get around people that have cookies turned off?

    Thanks so much for any help you can give!

    Ryan Ritten
     
    RyanRitten, Dec 28, 2007
    #1
    1. Advertising

  2. RyanRitten

    Evertjan. Guest

    RyanRitten wrote on 28 dec 2007 in
    microsoft.public.inetserver.asp.general:

    > I am making a website where users must log in. I want to somehow
    > remember they are logged in regardless of what links they click on the
    > site. I've read the best way to do this is to use session variables.
    > Each page will check to see if a certain session variable exists and
    > if it does, they are logged in.
    >
    > I thought this is how all websites with log in pages do it. But then
    > I read that sesion variables place a cookie on the clients computer.
    > What happens if the client has cookies turned off? It appears that
    > session variables will not get saved and if a user clicks on a link
    > they will be told they are no longer logged in.


    True, but why do you call that unreliable?

    If the pc is turned of, they will also lose the session.

    > What am I missing? How do all the websites out there that require you
    > to be logged in get around people that have cookies turned off?


    No, only if they have session cookies, alias ram cookies, turned off.

    That is their choice, they obviously do not want to be in a session.

    If you programme around it, using querystring session identification and
    your own serverside database, then, IMHO, the reliability will go down
    indeed.

    --
    Evertjan.
    The Netherlands.
    (Please change the x'es to dots in my emailaddress)
     
    Evertjan., Dec 28, 2007
    #2
    1. Advertising

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. Andrew Turner

    FPGA output unreliable

    Andrew Turner, Aug 11, 2005, in forum: VHDL
    Replies:
    9
    Views:
    755
    Mike Treseler
    Aug 16, 2005
  2. Replies:
    1
    Views:
    789
    Scott Allen
    Jul 12, 2005
  3. xyZed
    Replies:
    21
    Views:
    1,984
    Alan J. Flavell
    Mar 28, 2006
  4. =?Utf-8?B?SmViQnVzaGVsbA==?=

    Unreliable Image Display in VS2003

    =?Utf-8?B?SmViQnVzaGVsbA==?=, Jun 21, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    326
    bruce barker \(sqlwork.com\)
    Jun 21, 2006
  5. James R. Saker Jr.

    Queue qsize = unreliable?

    James R. Saker Jr., Aug 6, 2004, in forum: Python
    Replies:
    4
    Views:
    445
    Jacob Hallen
    Aug 10, 2004
Loading...

Share This Page