SitePoint Sponsor |
|
User Tag List
Results 1 to 3 of 3
Thread: session problem
-
Mar 7, 2007, 02:43 #1
- Join Date
- Apr 2005
- Location
- Amman -Jordan
- Posts
- 339
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
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.
-
Mar 7, 2007, 03:15 #2
- 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();
http://www.php.net/ini_setMistakes are proof that you are trying.....
------------------------------------------------------------------------
PSD to HTML - SlicingArt.com | Personal Blog | ZCE - PHP 5
-
Mar 7, 2007, 03:34 #3
- 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