Hello
Can anybody help me with sessions?
Where is the problem? I start session in start.php script.
?php // start.php script
session_name('test');
session_start();
$_SESSION['fig1'] = 'split';
..
..
..
$split = http://;. $_SERVER['HTTP-HOST']. dirname($_SERVER['PHP_SELF']).
/split.php;
?
a
On Monday 18 April 2005 05:22, Reynier Perez Mira wrote:
Hi list:
I have this code that Works perfectly:
File: index.php
?
session_start();
echo a href=logout.php?sid=. session_id().Close session/a;
?
File: logout.php
?
session_unset();
session_destroy();
?
When user
yes, set the cookie expiration to 0. Can be done in php.ini, or with the
function mentioned.
use ini_set() or change the value.
On 4/18/05, Petar Nedyalkov [EMAIL PROTECTED] wrote:
On Monday 18 April 2005 05:22, Reynier Perez Mira wrote:
Hi list:
I have this code that Works
Hi list:
I have this code that Works perfectly:
File: index.php
?
session_start();
echo a href=logout.php?sid=. session_id().Close session/a;
?
File: logout.php
?
session_unset();
session_destroy();
?
When user click link all works fine but when user close window withouth click
Hi,
I've created a password protected area on the site I'm working on using PHP
Sessions - I've done this several times before without any
difficulty. This time, I've copied my old code - made the necessary
changes for login/passwd/database names, yet the sessions don't appear to
be working
Tim Thorburn wrote:
Hi,
I've created a password protected area on the site I'm working on using
PHP Sessions - I've done this several times before without any
difficulty. This time, I've copied my old code - made the necessary
changes for login/passwd/database names, yet the sessions don't
:
Hi,
I've created a password protected area on the site I'm working on
using PHP Sessions - I've done this several times before without any
difficulty. This time, I've copied my old code - made the necessary
changes for login/passwd/database names, yet the sessions don't appear
to be working
updating, it tried to grab your old value (on).
Justin
Sean Burlington wrote:
Tim Thorburn wrote:
Hi,
I've created a password protected area on the site I'm working on
using PHP Sessions - I've done this several times before without any
difficulty. This time, I've copied my old code
Yes, I've also had this script working on PHP 4.0.6 - basically I'm looking
for reasons as to why the sessions may not be functioning properly. Right
now I'm going line by line through the configuration of PHP on the server
that works (4.2.2) and the server that doesn't work (4.1.2) - I'm
What am I doing wrong here? I have a login form that visitors enter their
usename and use_psswrd in to log in...the form action is this code:
SNIP 1==
?
session_start();
if ($_REQUEST[use_name] $_REQUEST[use_psswrd])
{
$connection = mysql_connect(SERVER,USER,PASS) or
Hello,
Jay Fitzgerald [EMAIL PROTECTED] wrote:
[snip]
===SNIP 2
?
session_start();
if (isset(valid_id))
{
echo $_SESSION[valid_id]P;
}
else
[/snip]
Perhaps, it's because you need to ask
if (isset($_SESSION['valid_id'])) ?
- E
--
PHP General Mailing List
Well, I suppose it's a well known problem, but I haven't found a solution
yet...
As you know, when you don't use sessions, you can use the back button of
your browser, or the javascript commande history.back(). In the same time,
you don't have to put some nocache header to have your dynamic
There is a functions called session_cache_limiter().
Use this function before you output anything (or use ob_start(), if you would
like)
Regards,
--
Yasuo Ohgaki
Matthieu Brunet [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Well, I suppose it's a well known
Hi,
I've been using horde, IMP for a while with PHP4 pretty well, no problem at
all (uses PHPLIB for session and database storage).
But now I need to built some code and I'm using PHP4's native session
functions. The problem was that when coding I got an error related with
PHPLIB's session
14 matches
Mail list logo