Search found 5 matches
- Sat Nov 28, 2009 9:47 pm
- Forum: PHP - Code
- Topic: PHP Session does not access session variable
- Replies: 7
- Views: 84
Re: PHP Session does not access session variable
and in the previous page the value of member id is 1.. i checked using var dump
- Sat Nov 28, 2009 9:40 pm
- Forum: PHP - Code
- Topic: PHP Session does not access session variable
- Replies: 7
- Views: 84
Re: PHP Session does not access session variable
name of variable is same in both pages and am not using that register function
- Sat Nov 28, 2009 9:38 pm
- Forum: PHP - Code
- Topic: PHP Session does not access session variable
- Replies: 7
- Views: 84
Re: PHP Session does not access session variable
tried
var_dump($_session['memberId']);
it gives me
Undefined variable: _session
var_dump($_session['memberId']);
it gives me
Undefined variable: _session
- Sat Nov 28, 2009 8:52 pm
- Forum: PHP - Code
- Topic: PHP Session does not access session variable
- Replies: 7
- Views: 84
Re: PHP Session does not access session variable
session starts on the all pages successfully
- Sat Nov 28, 2009 5:54 pm
- Forum: PHP - Code
- Topic: PHP Session does not access session variable
- Replies: 7
- Views: 84
PHP Session does not access session variable
<?php
session_start();
if ( !isset($_session['memberId']))
{
header( 'Location: http://google.com' ) ;
}
else
{
//Blah blah
}
In the previous page i have set the member Id but here it cannot view as the page always redirects to google
please help me
session_start();
if ( !isset($_session['memberId']))
{
header( 'Location: http://google.com' ) ;
}
else
{
//Blah blah
}
In the previous page i have set the member Id but here it cannot view as the page always redirects to google
please help me