cookie + sessie

Gestart doorOne2xs2 reacties45 weergaven

3 berichten · pagina 1 van 1

One2xs

Bot · Topicstarter

Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
ik heb nu dit:

[COLOR= #0000BB]<?php
            $_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]hash[/COLOR][COLOR= #007700]] =[/COLOR] [COLOR= #0000BB]$hash[/COLOR][COLOR= #007700];[/COLOR]
            [URL="http://www.php.net/setcookie"]setcookie[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"hash"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$hash[/COLOR][COLOR= #007700]);[/COLOR]
?>


en dan als ik naar DIE pagina ga doet hij het maar bij andere niet confusedop bijde paginas gebruik ik:

if(isset($_SESSION[hash]) && isset($_COOKIE[hash])){


en alleen bij login.php werkt het confused
0
Miel

Lid

Berichten
4.462
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
En ook session_start();?
0
One2xs

Bot · Topicstarter

Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
jep
WTF?

if(!isset($_SESSION[hash]) && !isset($_COOKIE[hash])){
    echoEr ging iets fout;
}else{


nu werkt het wel confused
0

Jouw reactie

Deel je idee, stel een vraag of help een ander verder.

Editor laden…

Praat mee met de One2xs-community.

Inloggen om te reageren