SA SA <suacharya@gmail.comwrote in news:1184276300.871187.258560
@n2g2000hse.googlegroups.com:
Quote:
Quote:
Quote:
It worked in the past - i am having this issue ever since hosting
company moved me to different server.
>>
>maybe this is your problem then (from your code):
>session_save_path("/tmp");
>>
>Perhaps the path "/tmp" doesn't exist, or it doesn't have the proper
>permissions that let you write a file there.
>
To check to see if the /tmp folder exits i tested the code with fake
folder /1ggh00 name. Sure enough it gave me folder not found error.
Seems like folder does exits, but not sure if i have write permission
to it.
One thing is almost for certain... you do not have permission to write
to any folder at the top of the computer ("/1ggh00") on a shared web
host. You can probably create and write to "1ggh00/" though (ie: a
directory UNDER your user/website).
I also gotta say that I use sessions extensively, and I do so without
explicitly using cookies or writing to any file. It's just
$_SESSION['MySessionName'] = 'yeehah!';
to set, and
$thesession = $_SESSION['MySessionName'];
to put the read the session value and put it into the variable
"$thesession".
Not sure why you're jumping through hoops, (ie: trying to specify where
the session info is stored) but maybe I need to read your post again.
Quote:
One intersting thing - time to time i see this message not sure if it
is related.
>
"Warning: Unknown():Your script possibly relies on session side-effect
which existed until PHP 4.2.3 please be advised that the session
extension does not consider gloabl variables as source of data unless
register_globals is enabled. You can disable this funcationality and
this warning by setting session.bug_compt_42 or session.bug_compt_warn
to off, respectively. in unknown in line 0"
freaky, i imagine there's some Google info on this somewhere....