orange08 Posted May 7, 2009 Share Posted May 7, 2009 hi, as learning php, i found session is the quite important thing in php... but, i found someone saying that using session is quite dangerous because some browser will block session... so, i would like to ask you all php experts here...is that really got such dangerous thing? Quote Link to comment https://forums.phpfreaks.com/topic/157203-php-session/ Share on other sites More sharing options...
ILMV Posted May 7, 2009 Share Posted May 7, 2009 No more dangerous than a browser blocking the use of cookies... I have never had a problem with it. Quote Link to comment https://forums.phpfreaks.com/topic/157203-php-session/#findComment-828338 Share on other sites More sharing options...
Adam Posted May 7, 2009 Share Posted May 7, 2009 Also if the browser does block the session cookie, normally it's passed through the URL instead. Quote Link to comment https://forums.phpfreaks.com/topic/157203-php-session/#findComment-828339 Share on other sites More sharing options...
orange08 Posted May 7, 2009 Author Share Posted May 7, 2009 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? Quote Link to comment https://forums.phpfreaks.com/topic/157203-php-session/#findComment-828368 Share on other sites More sharing options...
Ken2k7 Posted May 7, 2009 Share Posted May 7, 2009 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. Quote Link to comment https://forums.phpfreaks.com/topic/157203-php-session/#findComment-828440 Share on other sites More sharing options...
orange08 Posted May 7, 2009 Author Share Posted May 7, 2009 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? Quote Link to comment https://forums.phpfreaks.com/topic/157203-php-session/#findComment-828570 Share on other sites More sharing options...
premiso Posted May 7, 2009 Share Posted May 7, 2009 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. Quote Link to comment https://forums.phpfreaks.com/topic/157203-php-session/#findComment-828573 Share on other sites More sharing options...
orange08 Posted May 7, 2009 Author Share Posted May 7, 2009 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. Quote Link to comment https://forums.phpfreaks.com/topic/157203-php-session/#findComment-828580 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.