Results 1 to 2 of 2

Thread: [RESOLVED] PHP, Ajax, cookies and session mess

  1. #1

    Thread Starter
    Frenzied Member StrangerInBeijing's Avatar
    Join Date
    Mar 2005
    Location
    Not in Beijing
    Posts
    1,666

    Resolved [RESOLVED] PHP, Ajax, cookies and session mess

    As you can see on this site's "Location Selection" bar (whre you can drill down from your continent>country>region>city) I use Ajax and PHP to get and display the data from the database.

    The idea is users' dont have to go all the way down to city. If select a continent all items for that continent will become available (not shown now), same for region.

    So I'd like to store the user's last continent, country (if any), regin (if any) and city (if any) in a cookie and jump to that on the next visit.

    However it seems if i set a cookie in the PHP script that are used by the ajax coding it does not work. nor does session.

    Anyone ran into this kind of problems?

    ps: if you look at the controls, note only cities for Asia>China and Africa>South AFrica Regions are available.
    Install and Configure Eclipse For both Java and PHP development
    Accessible Ajax/jQuery Forms Degrade gracefully with JavaScript Disabled

  2. #2

    Thread Starter
    Frenzied Member StrangerInBeijing's Avatar
    Join Date
    Mar 2005
    Location
    Not in Beijing
    Posts
    1,666

    Re: PHP, Ajax, cookies and session mess

    nevermind..my bad, figured it out. wasnt problem with ajax ..just syntax
    Install and Configure Eclipse For both Java and PHP development
    Accessible Ajax/jQuery Forms Degrade gracefully with JavaScript Disabled

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