SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Enthusiast
    Join Date
    Jul 2001
    Location
    Wolverhampton, UK
    Posts
    81
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    what's wrong with this line

    if(!isset($HTTP_COOKIE_VARS['session_cookie'])

    beachball

  2. #2
    Dumb PHP codin' cat
    Join Date
    Aug 2000
    Location
    San Diego, CA
    Posts
    5,460
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: what's wrong with this line

    Originally posted by beachball
    if(!isset($HTTP_COOKIE_VARS['session_cookie'])

    beachball
    Well without seeing the context its sitting in I would say the first error I see is a missing parantheses on the end of the line.

    should read:
    PHP Code:
    if(!isset($HTTP_COOKIE_VARS['session_cookie'])) 
    Please don't PM me with questions.
    Use the forums, that is what they are here for.

  3. #3
    SitePoint Enthusiast
    Join Date
    Jul 2001
    Location
    Wolverhampton, UK
    Posts
    81
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    it was that as well

    beachball

  4. #4
    Hi there! Owen's Avatar
    Join Date
    Jan 2000
    Location
    CA
    Posts
    1,165
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    if (SID == "")

    would work as well, I believe. (if you're trying to determine if a session cookie exists. it will be defined if PHP is using the session id appended after the URL (script.php?SESSID=dhjfksda...) and undefined if a cookie is used.)

    Owen


Bookmarks

Posting Permissions

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