SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: session problem

  1. #1
    SitePoint Addict ruba's Avatar
    Join Date
    Apr 2005
    Location
    Amman -Jordan
    Posts
    339
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Exclamation session problem

    Hi every body,
    My friend ask me to solve his prolem,
    He have a windows server, when he set session it save in the directory where he create the session,

    I don't know how to solve it, could you help me plz?

    for example,
    if he create session in login page for admin ,
    new session file create in admin folder, and when he want to open it from a sub dir it don't c the session variable

    advice please
    Open Blocked website
    Open Blocked Website
    Knowledge Is Knowing That A Tomato Is A Fruit,
    Wisdom Is Not Putting It In A Fruit Salad.

  2. #2
    rajug.replace('Raju Gautam'); bronze trophy Raju Gautam's Avatar
    Join Date
    Oct 2006
    Location
    Kathmandu, Nepal
    Posts
    4,013
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Why don't you use ini_set() function to set the session_path for all the sessions of your site? I think your friend's problem will be solved using this function like this:
    PHP Code:
    $pathtomysess "/your/path/to/store/sessions";
    ini_set('session.save_path'$pathtomysess);
    session_start(); 
    Not that you must set this before session_start(). For more details see
    http://www.php.net/ini_set
    Mistakes are proof that you are trying.....
    ------------------------------------------------------------------------
    PSD to HTML - SlicingArt.com | Personal Blog | ZCE - PHP 5

  3. #3
    SitePoint Addict ruba's Avatar
    Join Date
    Apr 2005
    Location
    Amman -Jordan
    Posts
    339
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    thanks , every thing goes ok with em
    Open Blocked website
    Open Blocked Website
    Knowledge Is Knowing That A Tomato Is A Fruit,
    Wisdom Is Not Putting It In A Fruit Salad.


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
  •