Hello
To Whomever it concerns...
I have a problem using sessions in PHP.
The job that i have to accomplish is that
once a user is logged in to our machine(actually it's a product to be deleivered to the client),he is validated and then he can go to any number of sites.But when he logs off his time duration including from the time he has logged in has to be tracked for each and every user.This time should include the total elapsed time between the time logged in and where ever he was in between (may be browsing other site) and until he logs off.Using sessions i had a problem that when he loggs off i calculated the difference and showed to the user so that he can be charged on the basis of time he has used our product.But that session expires when we say back after the logg of screen.Again if the same user visits it it treats him as a new user.So should i opt for cookies.Would they solve my problem..and if so how .
Please since i am a novoice at PHP,help me out.
Thanks in advance..
REENA PATHAK