OutlawTorn wrote:Alright since this board is running a modified version of phpbb i will ask my question.
Ok when someone goes to login, they enter thier login info and then press login. Now the login page will hang untill you either get a 404 error or "recieved no data from host". But when the user would press refresh or click back, poof thier logged it. Now why is it that the login hangs and goes to a 404 error like the login failed or something but yet when u refresh to the main index or click back thier logged in.
This person is using Internet Explorer aren't they? Here is what is most likely happening: The browser (probably IE) is incorrectly detecting a 404 (which happens often with IE). The header from the server is being sent, IE is parsing the Set-Cookie header and "setting" the cookie. As just mentioned, even though the cookie is set, IE still "senses" a 404 or something for some unknown reason. Thus, even though a proper header was sent from the server and the cookie was set, you still get a 404. When you hit refresh, the cookie has been set, so IE sends it in the request. The server receives the request with the cookie that IE set before. This cookie contains the PHP Session ID, and the server thinks the user has logged in, thus you are redirected to a page and logged in.
An understanding of HTTP and cookies definitely helps to understand the process.
Oh yeah, I could be wrong...
The primary purpose of the DATA statement is to give names to constants; instead of referring to pi as 3.141592653589793 at every appearance, the variable PI can be given that value with a DATA statement and used instead of the longer form of the constant. This also simplifies modifying the program, should the value of pi change.
-- FORTRAN manual for Xerox Computers