English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Hello,

I have built a few websites now with PHP sessions. They always work fine on my computer when I test them, but I always have many problems with users. Most of the solutions that I find online all recommend that I modify the php.ini file which I can’t do because these sites are on shared hosting accounts. Here are the main problems...

Proxy Servers - When people are in a corporate environment and have their security cranked up or are behind proxy servers none of the session variables work. This ruins everything from the shopping cart even to the login. I have looked at my script over and over and it seems basic and works on all the computers I test so I don't think that's the issue.

Cookies - The only time I have problems are if I disable cookies. I that cookies aren't even used on the users computer, only the server? That confuses me even more. I tried a script that saves session data to a SQL database?

How do sites like Amazon deal with sessions?

2006-11-30 12:33:59 · 1 answers · asked by dynodins 1 in Computers & Internet Software

Even people with cookies enabled still have problems. What about passing the session ID through a URL? I hear that its not a good idea for security reasons, and don't you have to pass it every page?

2006-11-30 12:47:20 · update #1

1 answers

I don't know about the proxy settings, but cookies are stored on the user's PC. All the cookie has to store is the sessionid, but that is critical because that is how it connects the user to the session. There will be a file stored the server that contains all of the session information. So a user must use cookies, or they won't be able to use sessions.

2006-11-30 12:40:15 · answer #1 · answered by Bryan A 5 · 0 0

fedest.com, questions and answers