[PHP]Stupid session question

Results 1 to 4 of 4
  1. #1
    (oO (||||) (||||) Oo) jM2.me is offline
    Grand MasterRank
    Aug 2009 Join Date
    USA (Fuck Yeah)Location
    2,527Posts

    [PHP]Stupid session question

    I don't need "a how to" on php sessions, just one simple question.

    When you open a page, the phpsession is created until it expires or you close browser. Now let's say page makes an ajax request to some other script. Technically the session for open page == ajax request. Right or im being stupid? Or both?



  2. #2
    Hm. foxx is offline
    Grand MasterRank
    Sep 2006 Join Date
    Czech RepublicLocation
    5,256Posts

  3. #3
    :-) s-p-n is offline
    DeveloperRank
    Jun 2007 Join Date
    Next DoorLocation
    2,097Posts

    Re: [PHP]Stupid session question

    Quote Originally Posted by jM2.me View Post
    Technically the session for open page == ajax request. Right or im being stupid? Or both?

    You're not being stupid, just jumping to conclusions.

    There is no "ajax request", Ajax applications make HTTP requests.

    AJAX is very much like clicking a hyper-link in terms of the server.

  4. #4
    (oO (||||) (||||) Oo) jM2.me is offline
    Grand MasterRank
    Aug 2009 Join Date
    USA (Fuck Yeah)Location
    2,527Posts

    Re: [PHP]Stupid session question

    oh gawd lord jesus christ.

    I kept making a request with ajax application to my php script. The script was supposed to return session id.

    No wonder why it didn't work.
    Idiot forgot to start session >_<



Advertisement