Current location: Hot Scripts Forums » Programming Languages » PHP » php session & cookies problem

php session & cookies problem

Reply
  #1 (permalink)  
Old 11-09-09, 04:28 AM
rsmahaa rsmahaa is offline
Newbie Coder
 
Join Date: Nov 2009
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
php session & cookies problem

hi All,

im developing one shopping site with hdfc payment interface. In this whole site im using sessions & cookies to display username.
Before entering into payment it shows username . After payment (when i return back to my site Ex: afterpayment.php) , my session & cookies are empty.Its only happ in Firefox(im using 3.5.5) and not in IE.

Here one surprise is , when i open home page again before logout, its showing username which is stored in session..

why ? & How????????
Any one help plz.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 11-09-09, 07:08 AM
wirehopper's Avatar
wirehopper wirehopper is offline
Community Liaison
 
Join Date: Feb 2006
Posts: 1,540
Thanks: 1
Thanked 22 Times in 22 Posts
Which cart, or is it a custom cart?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 11-09-09, 01:32 PM
End User's Avatar
End User End User is offline
Level II Curmudgeon
 
Join Date: Dec 2004
Posts: 2,824
Thanks: 13
Thanked 10 Times in 9 Posts
My guess is that perhaps "afterpayment.php" isn't restarting the session, which could account for this effect.
__________________
I don't live on the edge, but sometimes I go there to visit.
-------------------------------------------------------------------------
Sanitize Your Data (scroll down)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #4 (permalink)  
Old 11-09-09, 04:55 PM
wirehopper's Avatar
wirehopper wirehopper is offline
Community Liaison
 
Join Date: Feb 2006
Posts: 1,540
Thanks: 1
Thanked 22 Times in 22 Posts
Please post your code.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #5 (permalink)  
Old 11-10-09, 12:54 AM
rsmahaa rsmahaa is offline
Newbie Coder
 
Join Date: Nov 2009
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
i have sorted this issue.

this is bec of same var declaration of session and php var.....

Ex: $_session['user'] , $user in same page ...

any way thanks for reply
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ASP or PHP which is better? nepala The Lounge 3 12-05-08 10:19 AM
php value problem komrad PHP 1 10-13-08 09:31 PM
PHP script problem (please help) osmanmumtaz PHP 0 05-24-05 08:29 AM
php variable problem ashishjha54 PHP 7 05-22-05 01:09 PM
php session problem.(HELP PLEASE) justme PHP 3 03-22-04 03:47 PM


All times are GMT -5. The time now is 09:58 PM.
vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.