Make jQuery or PHP Session data available for other visitors with random (secret) link -
i need store data in session , make available other users.
i thought store data in session, generate random link, user 1 can send user 2. session should expire after 3 month.
the session name random code generate simluar code send post receive on secretlink $_get
.
is working in general or on wrong track? can store session when user 1 left website or session terminated?
i need set session via jquery, couldn't find expiration time of session.
i did cookie, of course that's not working user 2.
sessions files, stored on server. php sets cookie session id, named phpsessid. can use phpsessid parameter, have change in server's php settings. using parameter, pass link visitor let him use session. have extend session expiration time.
however, wouldn't recommend sharing sessions parameters. security risk when storing personal data in sessions. recommend write small script stores data in database , can accessed (for reading , writing) requesting url or url special or post parameter.
one last thing, sessions never accessible jquery directly. have write small script requests data on server via ajax.
Comments
Post a Comment