Results 1 to 5 of 5

Thread: Session vs Cookies

  1. #1

    Thread Starter
    Hyperactive Member DKCK's Avatar
    Join Date
    Dec 2000
    Location
    United States
    Posts
    329

    Session vs Cookies

    Here is my problem in a nutshell. I'm am trying to make my site work with both users who allow cookies and those who don't. When I go to check for cookies, I try to pass a session variable back to my script. However those that don't have cookies for some reason don't get the session variable either. Any ideas why this happens?

  2. #2
    Frenzied Member sebs's Avatar
    Join Date
    Sep 2000
    Location
    Aylmer,Qc
    Posts
    1,606
    cuz there's 2 diferent kind of cookies!

    look in your security setting of your browser!

  3. #3
    Big D Danial's Avatar
    Join Date
    Jul 2000
    Location
    ASP.Net Forum
    Posts
    2,877

    Re: Session vs Cookies

    Originally posted by DKCK
    Here is my problem in a nutshell. I'm am trying to make my site work with both users who allow cookies and those who don't. When I go to check for cookies, I try to pass a session variable back to my script. However those that don't have cookies for some reason don't get the session variable either. Any ideas why this happens?
    Thats because Session are implemented using cookies, the session id is passed at every request in a cookie so if one has cookie disabled then you wont be able to use session object.
    [VBF RSS Feed]

    There is a great war coming. Are you sure you are on the right side? Atleast I have chosen a side.

    If I have been helpful, Please Rate my Post. Thanks.

    This post was powered by :

  4. #4
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379
    The only way to 100% cover those paranoid users that totally disable ciookies, is to pass the values from page to page in hidden input tags.

    That is why many developers simply put disclaimers on their apps that cookies must be enabled.

    This problem is overcome in ASP.Net because if you start a session, the session id is passed in the URL line/form data so that IIS can always identify a user.
    oOOo--oOOo
    __/\/\onte96
    oOOo--oOOo
    Senior Programmer/Analyst
    MCP
    [email protected]
    [email protected]


    Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..

  5. #5
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    This problem is overcome in ASP.Net because if you start a session, the session id is passed in the URL line/form data so that IIS can always identify a user.
    I believe there's also an ISAPI filter in one of the IIS resource kits that'll do this.
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width