You are here: Re: sessions - with or without cookies « PHP Programming Language « IT news, forums, messages
Re: sessions - with or without cookies

Posted by Michael Fesser on 06/11/07 16:11

..oO(Chuck Anderson)

>I am seeing very definite results when I test from my own browser. With
>cookies enabled, the session var is always set.
>
>However, if I disable cookies, what happens is this (as it appears to
>me). When I enter the page (with image(s) in it), I call start_session
>and set my var. When the image requests are redirected (via htaccess) to
>the image server script, each call to start_session (one for every image
>on the page) creates a new session (empty sessions).

Correct, because by default PHP doesn't rewrite <img> tags when
session.use_trans_sid is enabled.

>This makes sense,
>as my browser is not sending a cookie telling the server a session is in
>use. Based on that, I tried setting session.use_trans_sid, but that did
>not change anything (which seems puzzling).

Have a look at url_rewriter.tags and adjust it as required.

Micha

 

Navigation:

[Reply to this 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

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