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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #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
 

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 01:47 PM.



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