RE: [PHP] Re: Session_id(); are changing between the pages.
| From: | hadi | Date: | Sun, 08 Jun 2014 21:39:12 +0000 |
| Subject: | RE: [PHP] Re: Session_id(); are changing between the pages. | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-323424@lists.php.net to get a copy of this message | ||
Ash,
> That usually happens when you've sent POST data to a page, which should be
> used to change state on the server. Your browser is recognising this and
> informing you (in its own little way) that this is something you might not want
> to do.
I couldn't understand your answer. I'm facing trouble here, when I click back button in my
browser I get this error (Webpage has expired).
Can you help here regard this issue.
My php.ini
Session Support enabled
Registered save handlers files user sqlite
Registered serializer handlers php php_binary
session.auto_start Off Off
session.bug_compat_42 Off Off
session.bug_compat_warn Off Off
session.cache_expire 180 180
session.cache_limiter nocache nocache
session.cookie_domain no value no value
session.cookie_httponly Off Off
session.cookie_lifetime 0 0
session.cookie_path /tmp /tmp
session.cookie_secure Off Off
session.entropy_file no value no value
session.entropy_length 0 0
session.gc_divisor 1000 1000
session.gc_maxlifetime 1440 1440
session.gc_probability 1 1
session.hash_bits_per_character 5 5
session.hash_function 0 0
session.name PHPSESSID PHPSESSID
session.referer_check no value no value
session.save_handler files files
session.save_path /tmp /tmp
session.serialize_handler php php
session.use_cookies On On
session.use_only_cookies On On
session.use_trans_sid 0 0
> -----Original Message-----
> From: Ashley Sheridan [mailto:ash@ashleysheridan.co.uk]
> Sent: Sunday, June 08, 2014 11:57 AM
> To: hadi
> Cc: 'Stuart Dallas'; 'PHP General'
> Subject: Re: [PHP] Re: Session_id(); are changing between the pages.
>
> On Sun, 2014-06-08 at 04:02 +0300, hadi wrote:
> > Stuart,
> >
> >
> > > Bingo! Change session.cookie_path in your php.ini from /tmp to /.
> > > Sorry I didn’t look closer at your php.ini when you posted it earlier.
> >
> > It work thank you.
> >
> > I have a other error when I click back button in my browser it give
> > me (Webpage has expired) Any clue why this happing ?
> >
> > > > Set-Cookie PHPSESSID=a01h328drivti3aqhp1f5hog71; path=/tmp
> > >
> > > Bingo! Change session.cookie_path in your php.ini from /tmp to /.
> > > Sorry I didn’t look closer at your php.ini when you posted it earlier.
> > >
> > > -Stuart
> > >
> > > --
> > > Stuart Dallas
> > > 3ft9 Ltd
> > > http://3ft9.com/
>
> That usually happens when you've sent POST data to a page, which should be
> used to change state on the server. Your browser is recognising this and
> informing you (in its own little way) that this is something you might not want
> to do.
>
> --
> Thanks,
> Ash
> http://www.ashleysheridan.co.uk
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
Attachment: [application/pkcs7-signature] smime.p7s
Attachment: [application/pkcs7-signature] smime.p7s