| | |
session varibale is running in IE but not in mozilla firefox
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Feb 2009
Posts: 130
Reputation:
Solved Threads: 0
Hi All,
When I was testing my site in mozilla I got the following issue
I am setting session variable in my login1.php file and accessing it in hoa.php file.
this process is working properly in IE but in MOZILLA I am not able to get the value of session. and also not able to read the value set in the child window.
Please help me sort out for this issue.
Thanks.
Regards,
Gagan
When I was testing my site in mozilla I got the following issue
I am setting session variable in my login1.php file and accessing it in hoa.php file.
this process is working properly in IE but in MOZILLA I am not able to get the value of session. and also not able to read the value set in the child window.
Please help me sort out for this issue.
Thanks.
Regards,
Gagan
The only time I have had trouble with firefox and $_SESSION has been because it stores the value across multiple tabs (whereas IE doesn't) so I haven't seen your problem before. Can you please post your code for when you store the variable and when you try to access it again?
There are no stupid questions, only those too stupid to ask for help.
echo is a web developer's best friend. •
•
Join Date: Feb 2009
Posts: 130
Reputation:
Solved Threads: 0
•
•
•
•
The only time I have had trouble with firefox and $_SESSION has been because it stores the value across multiple tabs (whereas IE doesn't) so I haven't seen your problem before. Can you please post your code for when you store the variable and when you try to access it again?
ya sure i will tell u where i am using this.
$loginId=$_REQUEST[user];
$password=$_REQUEST[password];
$_SESSION["userId"]=$loginId;
this is working well on this page in IE and mozilla Firefox
But when i am calling this another page $_SESSION["userId"] in IE this is working well and but not in FireFox.
What is the reason. pls help me. It is very urgent.
Thanks,
Gagan
•
•
Join Date: Feb 2009
Posts: 83
Reputation:
Solved Threads: 7
•
•
•
•
Thanks for reply,
ya sure i will tell u where i am using this.
$loginId=$_REQUEST[user];
$password=$_REQUEST[password];
$_SESSION["userId"]=$loginId;
this is working well on this page in IE and mozilla Firefox
But when i am calling this another page $_SESSION["userId"] in IE this is working well and but not in FireFox.
What is the reason. pls help me. It is very urgent.
Thanks,
Gagan
Hi gagan...
once try by using single quotes...
$loginId=$_REQUEST['user']; $password=$_REQUEST['password']; $_SESSION['userId']=$loginId;
•
•
Join Date: Feb 2009
Posts: 130
Reputation:
Solved Threads: 0
•
•
•
•
Hi gagan...
once try by using single quotes...
$loginId=$_REQUEST['user']; $password=$_REQUEST['password']; $_SESSION['userId']=$loginId;
i have tried this . Still this is not working in mozilla firefox. It is different from IE.
Please help me . How i can sort this problem.
•
•
Join Date: Feb 2009
Posts: 130
Reputation:
Solved Threads: 0
•
•
•
•
The only time I have had trouble with firefox and $_SESSION has been because it stores the value across multiple tabs (whereas IE doesn't) so I haven't seen your problem before. Can you please post your code for when you store the variable and when you try to access it again?
I am sending you URL of my site . then pls check this
http://www.warddamon.com/login/myindex.php
Open this URL in Firefox and IE both.
login name is scott
and pwd is 1234
then see the difference and then please tell me how i can sort out this problem.
This problem with sessions comes again and again. I think it was last month I help solve a simular problem. In most cases the cookie required for the session is unable to be stored inside the browser. So in otherwords, are cookies disabled in the browser that disallows sessions. So if it is mozilla firefox that sessions are not working, check that cookies are enabled. Cookies are all enabled then try using the session id in the url. Those two solutions solve most cases although the session id in the url may be a bit ugly. To use the session id in a url the following is an example of doing a link:
Hope that helps.
php Syntax (Toggle Plain Text)
<? echo '<a href="page2.php?' . SID . '">page 2</a>'; ?>
Try not to bump 10 year old threads as it can be really annoying.
Like php then read my website at http://syntax.cwarn23.net/
Star-Trek-Atlantis - now that's what I call a movie ^_^
My favourite PC. - MacGyver Fan
Bad english note: dis-iz-2b4u
Like php then read my website at http://syntax.cwarn23.net/
Star-Trek-Atlantis - now that's what I call a movie ^_^
My favourite PC. - MacGyver Fan
Bad english note: dis-iz-2b4u
![]() |
Other Threads in the PHP Forum
- Previous Thread: Web Browser Did not Show Image
- Next Thread: sql query help
| Thread Tools | Search this Thread |
301 ajax apache api array autosuggest beginner binary broken cakephp checkbox class cms code compression cron curl data database date display dynamic echo email error execution file files folder foreach form forms function functions google href htaccess html httppost image include insert integration ip java javascript joomla library limit link links login loop mail md5 menu mlm multiple mysql mysql_real_escape_string oop paypal pdf php problem query radio random recursion regex remote script search searchbox server session sessions sms soap sorting source space sql syntax system table tutorial update upload url validator variable video volume votedown web website xml youtube zend






