S
S
Sergey2019-09-05 16:32:39
PHP
Sergey, 2019-09-05 16:32:39

How to increase cookie lifetime?

Good afternoon, please tell me where to dig)
I work with an affiliate program, if a person after my site goes to the partner’s site and makes a purchase, I will receive deductions. But they indicate that Cookies live for a day, how can you increase their lifespan? (for sure you can do it manually on my site) where to look for info? because I have not worked with Cookie before

Answer the question

In order to leave comments, you need to log in

2 answer(s)
H
Hanneman, 2019-09-05
@1Sergey1

Their site exposes, not yours. They monitor the visitor who came from your site and send him cookies that have a 24 hour time limit - this is their policy. That is, a person who clicked on a link from your site will be considered to have passed through the affiliate program for a day and no more. If a person referred from you, but did not buy anything in 24 hours, and then after 2 days went to their site, then the cookies have already expired and their site will not count you as a referral.
And you give out "your" cookies for at least 10 years - your partner site doesn't care. They do not read your cookies, but their own.

D
Dima Pautov, 2019-09-05
@bootd

because I have not worked with Cookie before
well, can google php cookies?
You don't need a lot of mind, just overwrite the cookie with the date you need

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question