I'm trying to make a login script for a WML page with PHP4 and sessions.
I want it so users can login and be given a session ID. They keep this ID until they: a) log out, b) log in again or c) have their SID revoked by a separate feature.
IMPORTANT: WAP (WML) devices do not support cookies so the SID has to be incorporated into the link, AND I don't want it to expire when the 'browser' is closed - I plan to keep SIDs with the user info in a database.
Thing is, I'm having real problems with session handling. Because it's WML, you have to put ALL session command in the header, i.e. right at the top.
More importantly, I can't get rid of session ID. Whenever I do session_start(), I get the same old SID string given back. I want new ones to be generated each login.
Session_destroy() doesn't have much effect, and I can't do start,destroy,start in one go anyway as it won't allow it. Is my problem to do with having to register variables? I don't know enough about this.
Can anyone help with any aspect of this please? Email r_pridham@yahoo.co.uk - thanks!!