|
Posted by Rik on 01/04/07 18:50
artev wrote:
>> I user mod_rewrite in combination with sessions all the time. No
>> problem if they are in a cookie (and offcourse the domain stays the
>> same...), or if it's in the POST in an internal redirect. When the
>> session id is in a GET variable, add the [QSA] (query string append)
>> flag to all your rewrites so it will be carried over, like:
>> RewriteRule . /site/index.php [L,QSA]
>
>
> I insert my variable innera a $_SESSION (not POST or GET) ;
> any idea for the solution?
> QSA is for GET, but for SESSION that is?
I suggest you reread the PHP manual about sessions:
http://www.php.net/manual/en/ref.session.php
In short: The variables in $_SESSION never arrive at the client, and are
only on the server. The session is continued on the basis of a session-id,
which can be set by the client either by COOKIE, POST or GET. Find out how
your sessions are/should be continued.
--
Rik Wasmus
[Back to original message]
|