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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Feedback/Feature Requests > Set Cookie via Rewrite Rules

Reply
 
Thread Tools Display Modes
  #1  
Old 07-05-2011, 02:40 PM
Atticus Atticus is offline
Member
 
Join Date: Nov 2010
Posts: 31
Default Set Cookie via Rewrite Rules

Hi there,

Not sure if this would be considered a bug or a feature request, but to offer the benefit of the doubt we'll go with feature request

In the mod_rewrite documentation for Apache 2.2 there is support for setting cookies using rewrite rules. [see http://httpd.apache.org/docs/current....html#flag_co]

Our load balanced environment is causing problems for some automated update system (e.g. Wordpress, Drupal) and enabling session persistence would likely solve the issues we have been experiencing. The easiest way I can think of doing this is by setting a cookie whenever the viewer is accessing, for instance, http://mydomain.com/wp-admin/. In Apache, the following RewriteRule should spit out a cookie to the viewer which will trigger the session persistence --

RewriteRule ^/wp-admin/index\.php - [CO=wp_sptrack:true:.mydomain.net:0:/:0:1]

No matter how I try it this feature doesn't work. Assuming I am correct, would it be possible to add its support to Litespeed's rewrite system? If I am doing it wrong, any idea why?

Thanks for your time!
Reply With Quote
  #2  
Old 07-07-2011, 07:31 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
We will add that feature in later release.
I think the best solution is to get a session aware LB, like our LSLB product.
Reply With Quote
  #3  
Old 07-07-2011, 08:36 PM
Atticus Atticus is offline
Member
 
Join Date: Nov 2010
Posts: 31
Our load balancer is session aware, but if you're logged into the ACP of a product that session might not be removed after you've left the ACP. That's why we're looking to go this alternate route.
Reply With Quote
  #4  
Old 07-13-2011, 10:40 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
This feature has been added to 4.1.2 release.
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


All times are GMT -7. The time now is 08:45 AM.



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