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: 25
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 TechnoratiShare 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
-
 
Join Date: Feb 2006
Posts: 2,516
Thanks: 20
Thanked 109 Times in 106 Posts
Which cart, or is it a custom cart?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare 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: 3,027
Thanks: 14
Thanked 35 Times in 33 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 | Oracle Date & Substring Functions | Code Snippet Library | [url=http://www.codmb.com/Call Of Duty[/url]
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare 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
-
 
Join Date: Feb 2006
Posts: 2,516
Thanks: 20
Thanked 109 Times in 106 Posts
Please post your code.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare 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: 25
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 TechnoratiShare 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 9 07-14-10 06:48 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 03:08 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.