Ok, so here is the problem.
I have a website with a member login and a payment module. The member can buy stuff, but only when he's logged in (with sessions).
When the member wants to pay, he is redirected to another page of the payment provider (mollie). So for a brief amount of time, he leaves my website.
When the payment is done, he is automatically sent back to my website. And that's where the problem occurs: he is logged out.
How can I keep the sessions alive?
<?php
if(isset($_SESSION['member']) && $_SESSION['time']+300 > time()){
// logged in
}
?>
Anyone an idea?