Created
September 1, 2016 20:20
-
-
Save CB9TOIIIA/fe79c3b9d72e5037ddf9752e9e15dd5c to your computer and use it in GitHub Desktop.
session_set_cookie_params и session_start
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ($_GET[from]=='targetmailru'){ | |
session_set_cookie_params(10800); | |
if (isset($_REQUEST[session_name()])) session_start(); | |
$_SESSION[tel]='216-45-27'; | |
} | |
if ($_GET[from]=='yadirect'){ | |
session_set_cookie_params(10800); | |
if (isset($_REQUEST[session_name()])) session_start(); | |
$_SESSION[tel]='216-68-31'; | |
} | |
if ($_GET[from]=='adwords'){ | |
session_set_cookie_params(10800); | |
if (isset($_REQUEST[session_name()])) session_start(); | |
$_SESSION[tel]='216-34-71'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment