You are here: Re: trouble with PHP session - i think ???? « PHP Programming Language « IT news, forums, messages
Re: trouble with PHP session - i think ????

Posted by Good Man on 07/12/07 21:53

SA SA <suacharya@gmail.com> wrote in news:1184276300.871187.258560
@n2g2000hse.googlegroups.com:
>> > 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.


> 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....

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация