Jump to content

Cookies :[


kla0005

Recommended Posts

- But what if i want it to be 1½ hour and not just one?

 

Can you not perform basic math?

 

The 60 is the seconds, so time()+60 (seconds) is 1 minute ahead. Times that by another 60 it becomes an hour, so if you want it to be an hour and a half you can do 60 seconds times 90, which would make 90 minutes or an hour and a half.

Link to comment
https://forums.phpfreaks.com/topic/190132-cookies/#findComment-1003186
Share on other sites

- But what if i want it to be 1½ hour and not just one?

 

Can you not perform basic math?

 

The 60 is the seconds, so time()+60 (seconds) is 1 minute ahead. Times that by another 60 it becomes an hour, so if you want it to be an hour and a half you can do 60 seconds times 90, which would make 90 minutes or an hour and a half.

 

I like u to<3

- Sorry, i have never seen a 90 in a cookie turtorial before, so i thought that 60 was max.?

Link to comment
https://forums.phpfreaks.com/topic/190132-cookies/#findComment-1003188
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.