Skip to content

Commit

Permalink
added week long cookies to the login
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Mar 20, 2014
1 parent 032321e commit 701dfb4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
Empty file modified gettingStarted.txt
100644 → 100755
Empty file.
8 changes: 4 additions & 4 deletions src/amazonLogin.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ function getData(){
$tCount = (string)count($var['instagram']);

if(isset($_GET['facebook']) && $_GET['facebook'] == "true"){
setcookie("facebookCook", $_COOKIE['PHPSESSID'], time()+ (3600 * 24), '/', 'amazonaws.com', false, false);
setcookie("facebookCook", $_COOKIE['PHPSESSID'], time()+ (604800), '/', 'amazonaws.com', false, false);
if(isset($_GET['login']) && $_GET['login'] !== "second"){
header('Location: /#/ManAccounts');
}else{
Expand All @@ -76,7 +76,7 @@ function getData(){
}
}
if(isset($_GET['linkedin']) && $_GET['linkedin'] == "true"){
setcookie("linkedinCook", $_COOKIE['PHPSESSID'], time()+ (3600 * 24), '/', 'amazonaws.com', false, false);
setcookie("linkedinCook", $_COOKIE['PHPSESSID'], time()+ (604800), '/', 'amazonaws.com', false, false);
if(isset($_GET['login']) && $_GET['login'] !== "second"){
header('Location: /#/ManAccounts');
}else{
Expand All @@ -93,7 +93,7 @@ function getData(){
}
}
if(isset($_GET['twitter']) && $_GET['twitter'] == "true"){
setcookie("twitterCook", $_COOKIE['PHPSESSID'], time()+ (3600 * 24), '/', 'amazonaws.com', false, false);
setcookie("twitterCook", $_COOKIE['PHPSESSID'], time()+ (604800), '/', 'amazonaws.com', false, false);
if(isset($_GET['login']) && $_GET['login'] !== "second"){
header('Location: /#/ManAccounts');
}else{
Expand All @@ -110,7 +110,7 @@ function getData(){
}
}
if(isset($_GET['instagram']) && $_GET['instagram'] == "true"){
setcookie("instagramCook", $_COOKIE['PHPSESSID'], time()+ (3600 * 24), '/', 'amazonaws.com', false, false);
setcookie("instagramCook", $_COOKIE['PHPSESSID'], time()+ (604800), '/', 'amazonaws.com', false, false);
if(isset($_GET['login']) && $_GET['login'] !== "second"){
header('Location: /#/ManAccounts');
}else{
Expand Down
8 changes: 4 additions & 4 deletions src/login.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ function getData(){
$tCount = (string)count($var['instagram']);

if(isset($_GET['facebook']) && $_GET['facebook'] == "true"){
setcookie("facebookCook", $_COOKIE['PHPSESSID'], time()+ (3600 * 24), '/', 'clemson.edu', false, false);
setcookie("facebookCook", $_COOKIE['PHPSESSID'], time()+ (604800), '/', 'clemson.edu', false, false);
if(isset($_GET['login']) && $_GET['login'] !== "second"){
header('Location: /#/ManAccounts');
}else{
Expand All @@ -76,7 +76,7 @@ function getData(){
}
}
if(isset($_GET['linkedin']) && $_GET['linkedin'] == "true"){
setcookie("linkedinCook", $_COOKIE['PHPSESSID'], time()+ (3600 * 24), '/', 'clemson.edu', false, false);
setcookie("linkedinCook", $_COOKIE['PHPSESSID'], time()+ (604800), '/', 'clemson.edu', false, false);
if(isset($_GET['login']) && $_GET['login'] !== "second"){
header('Location: /#/ManAccounts');
}else{
Expand All @@ -93,7 +93,7 @@ function getData(){
}
}
if(isset($_GET['twitter']) && $_GET['twitter'] == "true"){
setcookie("twitterCook", $_COOKIE['PHPSESSID'], time()+ (3600 * 24), '/', 'clemson.edu', false, false);
setcookie("twitterCook", $_COOKIE['PHPSESSID'], time()+ (604800), '/', 'clemson.edu', false, false);
if(isset($_GET['login']) && $_GET['login'] !== "second"){
header('Location: /#/ManAccounts');
}else{
Expand All @@ -110,7 +110,7 @@ function getData(){
}
}
if(isset($_GET['instagram']) && $_GET['instagram'] == "true"){
setcookie("instagramCook", $_COOKIE['PHPSESSID'], time()+ (3600 * 24), '/', 'clemson.edu', false, false);
setcookie("instagramCook", $_COOKIE['PHPSESSID'], time()+ (604800), '/', 'clemson.edu', false, false);
if(isset($_GET['login']) && $_GET['login'] !== "second"){
header('Location: /#/ManAccounts');
}else{
Expand Down

0 comments on commit 701dfb4

Please sign in to comment.