Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.