Lost Password?


Go Back   CodeCall Programming Forum > Web Development Forum > PHP Forum

PHP Forum Use this forum to discuss all aspects of PHP Development. PHP is a server-side, cross-platform, HTML embedded scripting language that lets you create dynamic web pages.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-10-2007, 02:12 PM
Chrisms Chrisms is offline
Newbie
 
Join Date: Aug 2006
Location: NJ
Age: 19
Posts: 28
Rep Power: 9
Chrisms is on a distinguished road
Send a message via AIM to Chrisms
Default odd glitch/feature?

okay. so, im writing a website for my robotics team. And I finally got around to enabling cookies for long term logins.

Everything works fine. However, when i delete the session cookie from my browser, and refresh. PHP assigns a new session ID, then appends the session id to the URL (?PSPSESSID=blah) It's the NEW session ID, it isn't the one i deleted. I have no idea why.

if i remove the session ID form the url, and hit go, my code works, as it should, and then the links on my page magically lose their session ID suffix.

any clues guys? I'll PM the link to anyone interested. I just don't feel like posting it globally.

cheers,
Chrisms

P.S.- Hey winged panther! miss talking to you(if he's still even here, god if i know)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 07-11-2007, 01:38 PM
Jordan's Avatar   
Jordan Jordan is offline
Administrator
 
Join Date: Nov 2005
Location: Hendersonville, NC
Posts: 9,232
Last Blog:
Ext JS or Ext GWT
Rep Power: 20
Jordan is just really niceJordan is just really niceJordan is just really niceJordan is just really nice
Send a message via ICQ to Jordan Send a message via AIM to Jordan Send a message via MSN to Jordan
Default

I haven't worked with sessions much in PHP so I can't tell you how they should work. Someone else here may be able to tell you the answer. Here are some links you may want to read though:

http://www.php.net/session
PHP Sessions
__________________
CodeCall Blog | CodeCall Wiki | Shareware Site | Linux Forum | Write a Blog
The CodeCall Wiki is now fully integrated with vBulletin users! Check it out and add some new pages!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 07-11-2007, 04:49 PM
Chrisms Chrisms is offline
Newbie
 
Join Date: Aug 2006
Location: NJ
Age: 19
Posts: 28
Rep Power: 9
Chrisms is on a distinguished road
Send a message via AIM to Chrisms
Default

Quote:
Originally Posted by Jordan View Post
I haven't worked with sessions much in PHP so I can't tell you how they should work. Someone else here may be able to tell you the answer. Here are some links you may want to read though:

http://www.php.net/session
PHP Sessions
it's not that sessions aren't working, they are. I think i know why they are doing this. Perhaps it's some sort of PHP feature so if i have cookies disabled, i can keep track of the session in the URL? thats my best guess, that PHP sees the loss of session cookie as "oh hey, he didn't accept cookies, lets append the session to the URL so he can still be logged in!"

any thoughts?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 07-12-2007, 10:40 AM
Lop's Avatar   
Lop Lop is offline
Speaks fluent binary
 
Join Date: May 2006
Posts: 1,149
Rep Power: 18
Lop will become famous soon enoughLop will become famous soon enough
Default

I've seen this session in the URL. I think you can turn it off somehow but I am unsure of how.
__________________
Lop
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 07-12-2007, 02:37 PM
Chrisms Chrisms is offline
Newbie
 
Join Date: Aug 2006
Location: NJ
Age: 19
Posts: 28
Rep Power: 9
Chrisms is on a distinguished road
Send a message via AIM to Chrisms
Default

can anyone confirm my idea of why it's being put in the URL though? I'm one of those people who hate not knowing why my code is doing random things, haha.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT -5. The time now is 05:37 PM.

Contest Stats

WingedPanther ........ 2753.6
Xav ........ 2704
Brandon W ........ 1702.32
John ........ 1207.73
marwex89 ........ 1175.24
morefood2001 ........ 966.05
dcs ........ 655.75
Steve.L ........ 475.59
orjan ........ 418.58
Aereshaa ........ 383.54

Contest Rules

CodeCall Goal

Goal: 100,000 Posts
Complete: 98%

Ads