Reply to Re: session_start not work with rewritengine

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация