RE: session problems

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi carlos,
 
 First let me make some assumptions here. The server u are using is Apache..right???..If not i would recommend you to go for that.
 
Ok ..Now if you see a folder like D:\Php\.....in your system, i am sure that php may have already installed in ur system or might have installed earlier then uninstalled....Never mind...
 
If u can run php files from ur system i assume that php is installed some where...may be in your system or any other sytem in the network.
 
First u do onething...Inorder to find the actual path of the session.save_path u write a simple script like <?php echo phpinfo(); ?>
This script is supposed to give all the configuration details of the php installed. Go to the session section of that output page and look out for the path of the session.save_path. It may be something like /tmp or d:/tmp or someting like that.
 
If you have installed the phpserver on another system "ORION"..Note the directory where server is installed and configure the session.save_path of the php file as: \\ORION\d\php\tmp if it is there.
 
I use the path as c:\program files\apache group\apache\htdocs\tmp b'cause i have made the temp directory in the root of the apache server ( i.e \htdocs\). It is where all the session files are stored.
 
Oops......!!!!!! a lengthy mail.....sorry. 
 
Got any idea. ????? 
 
Check whether it works or not..
 
.......SuDeEp......
 
carlos castillo <ccastillo@xxxxxxxxxxxxxx> wrote:

HI,

Youre rigth the php server is another pc on the net, so can you give
some example of how configure the session.save_path, maybe something
like

/ORION/D:/PHP/tmp

ORION = Php Server.

I really aprecciate your help.

Carlos A. Castillo.
Ingeniero de desarrollo
ccastillo@xxxxxxxxxxxxxx
____________________________________

Su Aliado Efectivo en Internet
www.imagine.com.co
(57 1)2182064 - (57 1)6163218
Bogotá - Colombia 
____________________________________
- Soluciones web para Internet e Intranet
- Soluciones para redes
- Licenciamiento de Software
- Asesoría y Soporte Técnico
____________________________________



-----Mensaje original-----
De: Sudeep Sarath [mailto:sudeepfiles@xxxxxxxxxxx] 
Enviado el: jueves, 04 de marzo de 2004 0:50
Para: php-windows@xxxxxxxxxxxxx
Asunto: Re:  session problems


Hi Dear,

First of all let me warn u that sessions in PHP need to be handled very
carefully. It is very sensitive. Now to your problem....If there is an
error with session.save_path u need to configure the php.ini file. If u
are using a remote server to run ur php files then the path of
session.save_path cannot be like D:\PHP\temp. U have to mention the
absolute path of your server......To verify this make a php file with
script and run that. See the path of
session.save_path.

...SuDeEp....
carlos castillo wrote:

Hi, i have the followin problem, i have a site that use sessions,
sometimes when i want to write on the session i get the followin error:

Warning: Unknown(): The session id contains invalid characters, valid
characters are only a-z, A-Z and 0-9 in Unknown on line 0

Warning: Unknown(): Failed to write session data (files). Please verify
that the current setting of session.save_path is correct (D:\PHP\tmp) in
Unknown on line 0

I see the folder D:\PHP\tmp and there is the session file, so i dont
know whats the problem, also the script works ok, the problem is that at
the end of the html show the warnings.

Any clue?, thanks.


Carlos A. Castillo.
Ingeniero de desarrollo
ccastillo@xxxxxxxxxxxxxx
____________________________________

Su Aliado Efectivo en Internet
www.imagine.com.co
(57 1)2182064 - (57 1)6163218
Bogotá - Colombia 
____________________________________
- Soluciones web para Internet e Intranet
- Soluciones para redes
- Licenciamiento de Software
- Asesoría y Soporte Técnico ____________________________________

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Yahoo! India Insurance Special: Be informed on the best policies,
services, tools and more.

Yahoo! India Insurance Special: Be informed on the best policies, services, tools and more.

[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux