Re: session variable problem
| From: | Mesut TUNGA | Date: | Mon, 16 Apr 2001 20:13:13 +0000 |
| Subject: | Re: session variable problem | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-48800@lists.php.net to get a copy of this message | ||
Merhabalar,
firstly do you use windows or linux?
id you use windows you shoul give the session_save_path to the script. (
session_save_path("c:\\user\\tmp"); )
if you use linux and no changes in your .ini files, your sessions store
in /tmp
directory...
<?php
session_start();
$id = 123;
session_register('id');
?>
<html>
<head>
<title></title>
</head>
<body>
<?php
echo $id;
?>
</body>
</html>
Kolay Gele...
Mesut...
SERKAN BALKANLI (EBÝ Bþk.-Analist Prog.) wrote:
> i am starting and registering session variable succesfully that i can see
> the file on the server , but when it comes to use or display i can not ,
> the variable has no value ... the "session.save_handler = files" is in
> php.ini , i tried to change it to user but that occured a fatal error etc..
> So shortly what is the thing that i am missing
> thanks alot
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net