LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Bug Reports > Unset cookies before 302 redirect with phpLsapi

Reply
 
Thread Tools Display Modes
  #1  
Old 09-26-2005, 04:08 PM
IO IO is offline
Member
 
Join Date: Sep 2005
Posts: 26
Default Unset cookies before 302 redirect with phpLsapi

I use a php script to unset some cookies (for log-out).
At the end of the script there is a header('Location: ...);

It work fine with phpFcgi but the cookies are randomly unset with phpLsapi.
Reply With Quote
  #2  
Old 09-26-2005, 05:56 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Thank you for the bug report.

Does the unset always work if no Location header?
Can this be tested with wget or lynx?

It will be great if you can provide a test script.
Reply With Quote
  #3  
Old 09-26-2005, 06:45 PM
IO IO is offline
Member
 
Join Date: Sep 2005
Posts: 26
I make some tests, the cookies seem to be always sent, but there is a difference between the headers :

phpFcgi (Always Work) :
Code:
 1 HTTP/1.0 302 Found
 2 Content-type: text/html
 3 Set-Cookie: one=deleted; expires=Mon, 27 Sep 2004 01:24:25 GMT; path=/
 4 Set-Cookie: two=deleted; expires=Mon, 27 Sep 2004 01:24:25 GMT; path=/
 5 Location: http://www.redirect.com/
 6 Content-Encoding: gzip
 7 Vary: Accept-Encoding
 8 Content-Length: 20
 9 Server: LiteSpeed
10 Date: Tue, 27 Sep 2005 01:24:25 GMT
11 Connection: close
phpLsapi (Work Randomly) :
Code:
 1 HTTP/1.0 302 Found
 2 Set-Cookie: one=deleted; expires=Mon, 27 Sep 2004 01:23:05 GMT; path=/
 3 Set-Cookie: two=deleted; expires=Mon, 27 Sep 2004 01:23:05 GMT; path=/
 4 Location: http://www.redirect.com/
 5 Content-type: text/html
 6 Content-Encoding: gzip
 7 Vary: Accept-Encoding
 8 Content-Length: 20
 9 Server: LiteSpeed
10 Date: Tue, 27 Sep 2005 01:23:06 GMT
11 Connection: close
I don't think the place of Content-type: text/html is important :?
And I can't remove it (it's not necessary for a redirect) because it is defined in php.ini
Reply With Quote
  #4  
Old 09-29-2005, 06:11 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
I think we had found the bug, can you please download http://www.litespeedtech.com/lsapi/litespeed-1.4.tgz and give it a try.

Not sure about the "corrupted double-linked list with RHEL4" problem though.

Thanks,
George
Reply With Quote
  #5  
Old 10-06-2005, 05:17 PM
IO IO is offline
Member
 
Join Date: Sep 2005
Posts: 26
It work nice with 1.5 patch.

There is also no error "corrupted double-linked list with RHEL4" with the new patch and lsws 2.1.2

Good job :!: :wink:
Reply With Quote
Reply

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Redirect "domain.com" to "www.domain.com" Flornet Install/Configuration 4 07-24-2007 04:36 PM
How to redirect http://123.123.123.123 to http://www.domain.com using 301 redirect? phallstrom Install/Configuration 3 05-09-2007 04:50 PM
Redirect permanent pythod Apache Migration/Compatibility 3 04-27-2007 08:35 PM
Context Redirect that will remove the query string? phallstrom Install/Configuration 1 03-16-2007 06:11 AM
Redirect by rewrite & .htaccess slimak Apache Migration/Compatibility 14 01-30-2007 10:02 AM


All times are GMT -7. The time now is 02:52 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.