esteban wrote:
The don't want to pass the session variable across domains. The problem is
in the main domain, i don't know what happens, the session variable lost the
value or is distroyed.
Track down where is happens with lots of 'error_log' and 'print_r'
calls. Work out where it breaks
The don't want to pass the session variable across domains. The problem is
in the main domain, i don't know what happens, the session variable lost the
value or is distroyed.
Chris [EMAIL PROTECTED] escribió en el mensaje
news:[EMAIL PROTECTED]
esteban wrote:
I have a windows 2000 server with
I have a windows 2000 server with apache 2.0 and php 5.1.2. I use session
variables to validate users, each page have something like this:
if($_SESSION[validated]==0){
header(Location: index.php);
exit;
}
This worked fine when i had only one domain, but when i began to use virtual
domains,
esteban wrote:
I have a windows 2000 server with apache 2.0 and php 5.1.2. I use session
variables to validate users, each page have something like this:
if($_SESSION[validated]==0){
header(Location: index.php);
exit;
}
This worked fine when i had only one domain, but when i began to use
On Thursday 18 January 2007 06:26 pm, esteban wrote:
I have a windows 2000 server with apache 2.0 and php 5.1.2. I use session
variables to validate users, each page have something like this:
if($_SESSION[validated]==0){
header(Location: index.php);
exit;
}
This worked fine when i
I have diagnosed a problem with sessions I am having. I'm don't believe
it's necessarily a PHP problem, but I thought someone must have seen
this before.
The first thing I do is a
session_start()
and then determine if (using session variables) whether the user has
logged in successfully
Hi,
Im running a win2k with apache and PHP 4.3.4 and I have gone through
the installation readme for PHP. I have copied the necessary files to
the correct directories. I have also set register_globals= Off (default)
I have set my session path (it exists).
Now my problem is that I cant get my
if (session_is_registered($_SESSION['login']))
echo(seesion is reg);
else
echo(seesion not reg);
try
if (isset($_SESSION['login']))
echo(seesion is reg);
else
echo(seesion not reg);
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
[snip]
Ok here is what I do:
$_SESSION['login']=true;
if (session_is_registered($_SESSION['login']))
echo(seesion is reg);
else
echo(seesion not reg);
I have not used the session_register function as the manual says the
following:
[/snip]
Have you
thanks MATT it appears that the isset function worked!
Jay Blanchard [EMAIL PROTECTED] 8/16/2004
4:46:16 PM
[snip]
Ok here is what I do:
$_SESSION['login']=true;
if (session_is_registered($_SESSION['login']))
echo(seesion is reg);
else
ok I thought the problem was fixed but its not. The session variable
gets registered correctly however when I go to the next page and too see
if its still registered using the isset() function its not registered
anymore. I do have session_start(); at the top of the new page.
I cant think why its
Angelo Zanetti [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
ok I thought the problem was fixed but its not. The session variable
gets registered correctly however when I go to the next page and too see
if its still registered using the isset() function its not registered
anymore.
On Mon, 16 Aug 2004 17:39:21 +0200, Angelo Zanetti [EMAIL PROTECTED] wrote:
ok I thought the problem was fixed but its not. The session variable
gets registered correctly however when I go to the next page and too see
if its still registered using the isset() function its not registered
Hi Matt,
The session_id() is correct on both pages. Some info I forgot to add is
this:
on my first page:
session_write_close();
header(Location: franchise_menu.php?.SID);
exit();
however on my franchise_menu.php page, no SID is displayed in the
browser address. could that be a reason? Or have
no I'm not using cookies.
Session configuration values from php.ini:
session.save_handler = files
session.save_path = c:\temp\sessions
session.use_cookies = 0
session.name = PHPSESSID
session.auto_start = 0
session.cookie_lifetime = 0
session.cookie_path = /
session.cookie_domain =
session_write_close();
header(Location: franchise_menu.php?.SID);
exit();
SID will be empty if session ID was set in an appropriate session cookie
if you do a print_r($_SESSION) on franchise_menu.php do you see anything?
If you have access to the webserver you could just go in and look at
Angelo Zanetti [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi Matt,
The session_id() is correct on both pages. Some info I forgot to add is
this:
on my first page:
session_write_close();
header(Location: franchise_menu.php?.SID);
exit();
however on my franchise_menu.php
I've got an odd problem . . . I've got a PHP site (PHP 4.2.2, Apache
1.3.26, Linux box) that uses sessions to track a user_id for each user.
I use the user_id to grant various rights.
This works like a dream 95% of the time. But every once in awhile, the
session information gets lost. It's so
Hello,
I have big problem. I upgraded PHP from 4.1.2 to 4.2.3 and my scripts with
doesn´t work. Please help me!
in php.info register globals=On
I have two sripts:
first.php
?
session_start();
$ID = $txtusername . md5(microtime());
session_register('ID');
...
Header(Location: second.php);
?
I have a file called miec.php that does quite a lot of processing and then
include()s user_track.inc.php...
miec.php:
?
a lot of db processing (NO OUTPUT whatsoever)
include(user_track.inc.php);
UserTrack($products);
the output starts here...
?
When I first browse to a site on my LAN, I get links with URLs that look
like this:
chat/?PHPSESSID=f3d149f79f5196bd709fb3c256dbb3d8
after a refresh, the whoe PHPSESSID goes away.
Wondered if there was some setting in php.ini that I've overlooked?
I'm running PHP4 with Apache on an Unstable
Hi there!
I'm happy the mailing lisi is finally activated :)
Well guys, i've spent bad time using sessions with frames :
i have a website that dislpays some tour products, and i have four frames
in most of the pages! i have a logon button in the top frame where once
clicked it asks for the
22 matches
Mail list logo