Jump to content

Recommended Posts

Also if the browser does block the session cookie, normally it's passed through the URL instead.

 

can you please explain a bit about 'normally it's passed through the URL instead'? i can't understand what you meant here...thanks

 

in the case the browser block the session, it's because of user make this setting to browser or browser block the session itself?

Link to comment
https://forums.phpfreaks.com/topic/157203-php-session/#findComment-828368
Share on other sites

You can pass a session id or a session key through the URL and use $_GET to retrieve it. Of course, it must be very unique so someone can't just guess it.

 

as got people saying that browser can block session...

as a newbie, can i get some opinion from you all php experts here concerning this case? is that you all normally use session in your php site?

 

and is that most of the php site are using session?

Link to comment
https://forums.phpfreaks.com/topic/157203-php-session/#findComment-828570
Share on other sites

I always use sessions. The way users block sessions is by having cookies turned off or disabled. I do not think you should worry about this, at that is a small amount of users and they tend to know it is an issue.

 

Alternatively, you can configure apache/.htaccess to append the sessionid to GET data, which is not SEO friendly but would allow anyone browsing to not have cookies turned on. But as stated above, it is really not an issue at all.

Link to comment
https://forums.phpfreaks.com/topic/157203-php-session/#findComment-828573
Share on other sites

I always use sessions. The way users block sessions is by having cookies turned off or disabled. I do not think you should worry about this, at that is a small amount of users and they tend to know it is an issue.

 

Alternatively, you can configure apache/.htaccess to append the sessionid to GET data, which is not SEO friendly but would allow anyone browsing to not have cookies turned on. But as stated above, it is really not an issue at all.

 

ok, thank you for the opinion and information. as a newbie, it's mean a lot to me.

Link to comment
https://forums.phpfreaks.com/topic/157203-php-session/#findComment-828580
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.