Re: Session HELP !



>In the attempt to keep the URL and code quite clean, and avoid to have a
>very loooong url, we have used $_session[] for storing values trough the
>pages.
>
>Now, we have some clients that doesn't get any result when going on the
>second page. After studying their browser, the confidentiality setting was
>at the maximum. On their settings, the site doesn't work well.

This probably means that session cookies are not accepted.
Sessions require passing the session ID around, and the
existing choices are (a) cookie or (b) URL.

>Since we can't change the setting for every client, what may we do ?
>
>For passing session variable does it suffice to put a .SID at the end of
>every URL as we didn't do it.

You need to pass the SID somehow, and that's one way. Also look
at trans_sid, which may do much the same thing but save you some
work. It puts the session ID in the URL unless it appears that
cookies are working.

>And for POST submission, where we want to keep some values, how to we put a
>SID at the form tag ?

Hidden field with the SID in it?

Gordon L. Burditt
.



Relevant Pages

  • Re: Can SID be trusted?
    ... Jerry Stuckle wrote: ... [Having the session ID in SID even when cookies are used] ... in SID - and, not knowing any better, gets the session id and places it ...
    (comp.lang.php)
  • Re: [PHP] PHP Session Variables Not Being Set For Certain Browsers
    ... > with setting php session variables on certain end user browsers (certain ... do not allow cookies. ... Using this fact about the constant SID ... If the user's browser accepts cookies, ...
    (php.general)
  • RE: [PHP] Re: session cookies enabled?
    ... Check the SID constant after you've done session_start. ... an empty value, the session is using cookies; ... In order to decide whether to use cookies ... James Graham Building, Leeds Metropolitan University, ...
    (php.general)
  • Re: [PHP] PHP Session Variables Not Being Set For Certain Browsers
    ... browser accepts cookies and if not then append the SID as described? ... >> The only solution I can think of is to pass the session using PHPSESSION ...
    (php.general)
  • Re: Hiding variables passed via URL
    ... well you can view cookies as well. ... What else constitutes a 'session variable' apart from POST or GET data ... But then you don't understand that session variables aren't POST or GET ... You could coordinate PHP with Javascript. ...
    (comp.lang.php)