Polish time for the deployment on preview2. Created new 'sign in' and 'register' images. Cleaning up the form code in main.htm template, and the javascript in general.js.
The successful registration (and birth validation etc) results in aredirect to index.php, which needs to change to get the parent windowto reload itself.
Implementing a better session cookie - one that contains the user id, and one that can supersede the PHP session cookies, which is expiringlong before it should. I've done this, using mcrypt, to encrypt the user id into the static site's session cookie (set by the dyna php site.) If the PHPSESSION cookie has expired, or the session itself, which seems to be what is actually happening, and the static site's session cookie is available, it is decrypted to extract the user's id, and the PHP session is recreated from that.
Experimenting to find out how: divs loading/running there own javascript code. Despite there being a bunch of solutions found via Google, most of them don't work. Googling for information on HTML, JavaScript or anything related is guaranteed to come up with loads of opinions, solutions or vague tidbits generated by complete and utter idiots. Forum responses along the lines of 'I haven't read your code properly, or tried this myself, but maybe this will work.....'
For the login/register functionality, I need to get the PHP code to somehow redirect or refresh the parent window, which should be doable via javascript. Done, done and done, I've created a redirect.php file which will use javascript to redirect the parent window - only doable as we're sitting inside a single host name (thanks to reverse proxy)
For tomorrow: The natal wheel generation is using the wrong config file, it needs to be set to use 'transit'. The automatic logon when registering a new user doesn't use the configured cookie expiration time, and a successful logon doesn't refresh the main page as it should.
Monday, February 02, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment