[ic] re-write url losing session id help

Stefan Hornburg (Racke) racke at linuxia.de
Thu Jun 17 07:21:45 UTC 2010


On 06/16/2010 11:48 PM, IC wrote:
> Hi folks,
>
> I have some urls (not all) that use actionmaps and re-write rules in
> httpd.conf to remove the /cgi-bin/catalog, these pages are losing the
> session though, on each refresh of the page the session changes.
>
> For example I have in httpd.conf
>
> RewriteRule ^/actionmap/(.*) /cgi-bin/catalog/actionmap/$1 [PT,L]
>
> The re-write works fine but the session is lost, if I use the full url path
> eg /cgi-bin/catalog/actionmap/something.html the session is fine, if I use
> /actionmap/something.html the session is lost??

I don't know why it drops the session, but you can try the following instead:

ScriptAliasMatch ^/actionmap/(.*)$ /usr/lib/cgi-bin/catalog/actionmap/$1

As far as I know, Rewrite isn't necessary in your case.

Regards
	Racke


-- 
LinuXia Systems => http://www.linuxia.de/
Expert Interchange Consulting and System Administration
ICDEVGROUP => http://www.icdevgroup.org/
Interchange Development Team




More information about the interchange-users mailing list