0

Hi guys,

I'm facing a weird problem with our Trustico Certificate.

We have a webshop with customers that are logging in to make purchases of different products, all of this works nice untill the user changes his/her DATE on the Computer that he/she is using.

If the date is changed on logout, the client is logged back in automatically with a specific user.

Really cant find the problem behind this...

<?php
    ini_set('session.cookie_domain', '.myDomain.com');
    $cookie_name = 'authName';
    $sessionName = session_name();
    $sessionCookie = session_get_cookie_params();

    session_destroy();

    setcookie($sessionName, false, $sessionCookie['lifetime'], $sessionCookie['path'], $sessionCookie['domain'], $sessionCookie['secure']); 

    if(isSet($_COOKIE[$cookie_name]))
    {
        setcookie ($cookie_name, 'xx=&xx=', 1,"/");
    }

    $cookie_name = 'cookieName';
    $sessionCookie = session_get_cookie_params();
    setcookie($sessionName, false, $sessionCookie['lifetime'], $sessionCookie['path'], $sessionCookie['domain'], $sessionCookie['secure']);
     if(isSet($_COOKIE[$cookie_name]))
    {
        setcookie ($cookie_name, 'xx=&xx=&id', 1,"/");
    }
    header("myLink");
?>
2
Contributors
2
Replies
8
Views
4 Years
Discussion Span
Last Post by Szabi Zsoldos
9

@szabizs

We have a webshop with customers that are logging in to make purchases of different products, all of this works nice untill the user changes his/her DATE on the Computer that he/she is using.

This issue deals more with the browser than with the php code because I don't see anything wrong with your code.

Read this:

http://www.sslshopper.com/ssl-certificate-errors.html

Edited by LastMitch: grammer

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.