PHP cookie

Gestart doorShahiem32 reacties84 weergaven

33 berichten · pagina 2 van 3

Berichten
10.421
Reputatie
4
Punten
0,00
Lid sinds
Laatst gezien
Laat je inhoud van je cookie eens zien met een cookie viewer in Firefox? (screenshotje)
0
Shahiem

Lid · Topicstarter

Berichten
20.364
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Afbeelding
smile
Afbeelding
En dit krijg ik als op normale inlog pagina inlog
0
Berichten
10.421
Reputatie
4
Punten
0,00
Lid sinds
Laatst gezien
Dit lijkt me een client-side probleem in je browser die cookies verwijderd. Kijk je instellingen eens na, en gebruik anders eens een ander profiel in Firefox.
0
Shahiem

Lid · Topicstarter

Berichten
20.364
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Aarclay schreef:
Dit lijkt me een client-side probleem in je browser die cookies verwijderd. Kijk je instellingen eens na, en gebruik anders eens een ander profiel in Firefox.
Maar het probleem heb ik ook bij Chrome smile
0
Berichten
10.421
Reputatie
4
Punten
0,00
Lid sinds
Laatst gezien
Dan zal je systeemdatum verkeerd staan?
heb je anders een testcase voor ons?
0
Shahiem

Lid · Topicstarter

Berichten
20.364
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Aarclay schreef:
Dan zal je systeemdatum verkeerd staan?
heb je anders een testcase voor ons?
Kan ik de gegevens via PB vesturen?, want ik wil graag dat zo min mogelijk mensen mijn website zien.
0
Berichten
10.421
Reputatie
4
Punten
0,00
Lid sinds
Laatst gezien
Een testcase zeg ik. Je kan het toch uitbouwen, zodat we het kunnen testen?
0
Shahiem

Lid · Topicstarter

Berichten
20.364
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Bedoel je nou dat ik een script moet plaatsen of een url waarop je het kan testen?
0
Berichten
10.421
Reputatie
4
Punten
0,00
Lid sinds
Laatst gezien
ja
0
Shahiem

Lid · Topicstarter

Berichten
20.364
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Welke van de twee? yummie
0
Rik

Lid

Berichten
18.393
Reputatie
0
Punten
0,04
Lid sinds
Laatst gezien
Het gedeelte dat de cookie aanmaakt / controleert online zetten (+code) denk ik.
0
Berichten
10.421
Reputatie
4
Punten
0,00
Lid sinds
Laatst gezien
Shahiem schreef:
Welke van de twee? yummie
Beide, we willen het script zien, en de URL? Zonder één van de twee kunnen we niks ervan zien.
0
Shahiem

Lid · Topicstarter

Berichten
20.364
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/define"]define[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]ALLOW[/COLOR][COLOR= #007700],[/COLOR] FALSE[COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/define"]define[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]TITLE[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]Account activeren[/COLOR][COLOR= #007700]);[/COLOR]

[URL="http://www.php.net/include"]include[/URL] [COLOR= #DD0000]includes/config.php[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/include"]include[/URL] [COLOR= #DD0000]includes/header.php[/COLOR][COLOR= #007700];[/COLOR]

[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$param[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]1[/COLOR][COLOR= #007700]]))
{[/COLOR]
    
    [COLOR= #0000BB]$activatieQuery[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$mysql[/COLOR][COLOR= #007700]->[/COLOR]query[COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT id FROM leden WHERE activatieCode = "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$mysql[/COLOR][COLOR= #007700]->[/COLOR]escape[COLOR= #007700]([/COLOR][COLOR= #0000BB]$param[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]1[/COLOR][COLOR= #007700]]).[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700]);[/COLOR]
    
    [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$mysql[/COLOR][COLOR= #007700]->[/COLOR]num_rows[COLOR= #007700]([/COLOR][COLOR= #0000BB]$activatieQuery[/COLOR][COLOR= #007700]) ===[/COLOR] [COLOR= #0000BB]1[/COLOR][COLOR= #007700])
    {[/COLOR]
        
        [COLOR= #0000BB]$activatieFetch[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$mysql[/COLOR][COLOR= #007700]->[/COLOR]fetch[COLOR= #007700]([/COLOR][COLOR= #0000BB]$activatieQuery[/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] [COLOR= #0000BB]$core[/COLOR][COLOR= #007700]->[/COLOR]code[COLOR= #007700]()),[/COLOR] [URL="http://www.php.net/time"]time[/URL][COLOR= #007700]() +[/COLOR] [COLOR= #0000BB]60[/COLOR] [COLOR= #007700]*[/COLOR] [COLOR= #0000BB]60[/COLOR] [COLOR= #007700]*[/COLOR] [COLOR= #0000BB]24[/COLOR] [COLOR= #007700]*[/COLOR] [COLOR= #0000BB]365[/COLOR][COLOR= #007700]);[/COLOR]
        [COLOR= #0000BB]$mysql[/COLOR][COLOR= #007700]->[/COLOR]query[COLOR= #007700]([/COLOR][COLOR= #DD0000]"INSERT INTO leden_sessies ( lid, actief, ip, hash, datum_ingelogd ) VALUES  ( "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$activatieFetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]id[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]", 1, "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]REMOTE_ADDR[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]", "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$hash[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]", NOW()) "[/COLOR][COLOR= #007700]);[/COLOR]    
        [COLOR= #0000BB]$mysql[/COLOR][COLOR= #007700]->[/COLOR]query[COLOR= #007700]([/COLOR][COLOR= #DD0000]"UPDATE leden SET ingelogd = 1 WHERE id = "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$lidFetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]id[/COLOR][COLOR= #007700]]);[/COLOR]
        [COLOR= #0000BB]$core[/COLOR][COLOR= #007700]->[/COLOR]redirect[COLOR= #007700]([/COLOR][URL="http://www.php.net/LINK"]LINK[/URL][COLOR= #007700],[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700]);[/COLOR]
        [COLOR= #0000BB]$showform[/COLOR] [COLOR= #007700]=[/COLOR] FALSE[COLOR= #007700];

    }[/COLOR]
    [URL="http://www.php.net/else"]else[/URL]
        [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$fout[/COLOR][COLOR= #007700]->[/COLOR]foutmelding[COLOR= #007700]([/COLOR][COLOR= #DD0000]Dit account bestaat niet of is al geactiveerd.[/COLOR][COLOR= #007700]);
    

}[/COLOR]
[URL="http://www.php.net/else"]else[/URL]
    [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$fout[/COLOR][COLOR= #007700]->[/COLOR]foutmelding[COLOR= #007700]([/COLOR][COLOR= #DD0000]Je hebt geen activatiecode opgegeven.[/COLOR][COLOR= #007700]);[/COLOR]

?>


Script smile
0
Berichten
10.421
Reputatie
4
Punten
0,00
Lid sinds
Laatst gezien
Uitwerking?
0
Shahiem

Lid · Topicstarter

Berichten
20.364
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Bumpje smile
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