session varibale is running in IE but not in mozilla firefox

Reply

Join Date: Feb 2009
Posts: 130
Reputation: gagan22 is an unknown quantity at this point 
Solved Threads: 0
gagan22 gagan22 is offline Offline
Junior Poster

session varibale is running in IE but not in mozilla firefox

 
0
  #1
Mar 13th, 2009
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
Reply With Quote Quick reply to this message  
Join Date: Aug 2007
Posts: 794
Reputation: darkagn has a spectacular aura about darkagn has a spectacular aura about darkagn has a spectacular aura about 
Solved Threads: 110
darkagn's Avatar
darkagn darkagn is offline Offline
Master Poster

Re: session varibale is running in IE but not in mozilla firefox

 
0
  #2
Mar 13th, 2009
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.
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 148
Reputation: mschroeder is on a distinguished road 
Solved Threads: 25
mschroeder mschroeder is offline Offline
Junior Poster

Re: session varibale is running in IE but not in mozilla firefox

 
0
  #3
Mar 13th, 2009
Do you possibly have cookies disabled in FF and have php configured to use a cookie to store the session id?
If you're question/problem is solved don't forget to mark the thread as Solved!

-- Code I post is usually but not always tested. If it is tested it will be against 5.2.11 or 5.3.0
Reply With Quote Quick reply to this message  
Join Date: Feb 2009
Posts: 130
Reputation: gagan22 is an unknown quantity at this point 
Solved Threads: 0
gagan22 gagan22 is offline Offline
Junior Poster

Re: session varibale is running in IE but not in mozilla firefox

 
0
  #4
Mar 14th, 2009
Originally Posted by darkagn View Post
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?
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
Reply With Quote Quick reply to this message  
Join Date: Feb 2009
Posts: 83
Reputation: ahmksssv is an unknown quantity at this point 
Solved Threads: 7
ahmksssv ahmksssv is offline Offline
Junior Poster in Training

Re: session varibale is running in IE but not in mozilla firefox

 
0
  #5
Mar 14th, 2009
Originally Posted by gagan22 View Post
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;
Reply With Quote Quick reply to this message  
Join Date: Feb 2009
Posts: 130
Reputation: gagan22 is an unknown quantity at this point 
Solved Threads: 0
gagan22 gagan22 is offline Offline
Junior Poster

Re: session varibale is running in IE but not in mozilla firefox

 
0
  #6
Mar 14th, 2009
Originally Posted by ahmksssv View Post
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.
Reply With Quote Quick reply to this message  
Join Date: Feb 2009
Posts: 130
Reputation: gagan22 is an unknown quantity at this point 
Solved Threads: 0
gagan22 gagan22 is offline Offline
Junior Poster

Re: session varibale is running in IE but not in mozilla firefox

 
0
  #7
Mar 14th, 2009
[QUOTE=gagan22;824742]i have tried this . Still this is not working in mozilla firefox. It is different from IE.
when i am trying to do it . Still it is not working in firefox.
Please help me . How i can sort this problem.
Reply With Quote Quick reply to this message  
Join Date: Feb 2009
Posts: 130
Reputation: gagan22 is an unknown quantity at this point 
Solved Threads: 0
gagan22 gagan22 is offline Offline
Junior Poster

Re: session varibale is running in IE but not in mozilla firefox

 
0
  #8
Mar 14th, 2009
Originally Posted by darkagn View Post
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?
Thanks for reply,
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.
Reply With Quote Quick reply to this message  
Join Date: Sep 2007
Posts: 1,478
Reputation: cwarn23 has a spectacular aura about cwarn23 has a spectacular aura about cwarn23 has a spectacular aura about 
Solved Threads: 136
cwarn23's Avatar
cwarn23 cwarn23 is offline Offline
Nearly a Posting Virtuoso

Re: session varibale is running in IE but not in mozilla firefox

 
0
  #9
Mar 14th, 2009
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:
  1. <?
  2. echo '<a href="page2.php?' . SID . '">page 2</a>';
  3. ?>
Hope that helps.
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
Reply With Quote Quick reply to this message  
Join Date: Jun 2009
Posts: 2
Reputation: Shaaa is an unknown quantity at this point 
Solved Threads: 0
Shaaa Shaaa is offline Offline
Newbie Poster

Re: session varibale is running in IE but not in mozilla firefox

 
0
  #10
Jun 23rd, 2009
gagan how did u solved your session problem?
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the PHP Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC