I would like to insert two session/cookie ID's into a DB immediately. Without refreshing the page, and without going to another page. Thus setcookie() does not seem to be the answer.
session_start() can go into the db immediately, but I would like the expiration of each to be different.
For example:
Session 1 ends after 30 minutes or when browser is closed.
Session 2 never ends.
Can this be done? If so, how? Or are there better ideas?
Thanks,
Barry Barry