You are here: Re: Sessions in PHP4 « PHP Language « IT news, forums, messages
Re: Sessions in PHP4

Posted by sid on 02/03/07 03:41

On Feb 2, 1:52 pm, OmegaJunior <omegajun...@spamremove.home.nl> wrote:
> On Fri, 02 Feb 2007 18:22:44 +0100, sid <sidwe...@alexian.net> wrote:
> > On Feb 2, 1:59 am, OmegaJunior <omegajun...@spamremove.home.nl> wrote:
> >> You can set the session
> >> configurations to use nothing but cookies; that way it won't ever try to
> >> create a sessionid in the url. Then you can create a cookie on a front
> >> page which you check on a subsequent page, to see whether or not the
> >> client accepts cookies. If they don't, ask them to allow their browser
> >> to
> >> accept cookies for your web site. Would they do that? Yes, if they value
> >> their security. (Not that it's very secure by itself, but it's a start.)
>
> > Can you tell me what keysnames to check ?
>
> > I don't believe that the browser I was using prohibits cookies from
> > being set.
> > What criteria does it use to determine if cookie are enabled or not ?
>
> > Sid.
>
> You invent the keynames yourself. There are some reserved ones. I tend to
> use something like "myApp_cookiecheck" where I replace "myApp" with an
> acronym of the web site where I use it, and simply set the cookie to 1.
>
> When a subsequent page tries to load the cookie (using
> $_COOKIE['myApp_cookiecheck']) and can't read it, you can be pretty sure
> the browser rejected the cookie. But why it rejected it, is worth a study
> in and of itself.
>
> You may want to take a look athttp://nl3.php.net/manual/en/function.setcookie.php
>
> --
> Using Opera's revolutionary e-mail client:http://www.opera.com/mail/- Hide quoted text -
>
> - Show quoted text -

What you are describing is sending a test cookie. I thought the other
post was talking about a setting in the PHP.ini that would prevent the
SessionId from being appened to the URL. I wanted to know how the
server determines that cookies are not being accepted and chooses to
append the URL. I thought what was being described was the server
determins that cookies are not being accepted and appends the URL on
its own, not by code from a script. This is kind of the behavior that
I am observing. I see the Session on the URL and I didn't put it
there.

Sid.

 

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

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