ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Problem with LOGIN - Session ID vs COOKIES

April 18, 2011 12:06pm

Subscribe [4]
  • #1 / Apr 18, 2011 12:06pm

    Ruslan Ka

    63 posts

    This question may be related to a resolved thread.

    Hello I have an issue with logging in in from my clients office, from any computer including my laptop.

    Everything works find when I try to login from my office, and my laptop.


    The issue is that it always gets back to the login form page after I try to login.

    I found few posts where it was suggested to force cokies and etc , that’s what I did

    1. Cockies

    config.php
    $config['admin_session_type'] = "c";
    $config['cookie_domain'] = ".mydomain.com";
    controllers/cp/login.php
    $return_path = $base.AMP.'C=homepage';

    2. Session ID

    $config['admin_session_type'] = "s";
    $config['cookie_domain'] = ".alfareeqmaintenance.com";
    controllers/cp/login.php
    $s = ($this->config->item('admin_session_type') != 'c') ? $this->session->userdata('session_id') : 0;
    $return_path = SELF.'?S='.$s.'&D=cp'.AMP.'C=homepage';

    Still no luck. Need really urgent help.

  • #2 / Apr 19, 2011 4:50am

    John Henry Donovan

    12339 posts

    EVENTAGRATE,

    Try this in your config.php

    $config['cookie_domain'] = "";
    $config['cookie_path'] = "";
    $config['cookie_prefix'] = "";
    $config['admin_session_type'] = "c";
    $config['user_session_type'] = "c";
    $config['require_ip_for_login'] = "n";
    $config['require_ip_for_posting'] = "n"; 
    $config['secure_forms'] = "n";

    Does your client’s network have a firewall?

    Did you try different browsers?

  • #3 / Apr 19, 2011 4:51am

    Ruslan Ka

    63 posts

    This question may be related to a resolved thread.

    I think I have the same issue as in the post above.

    I have few related questions:
    1. What should I ask the client to change in his firewall settings so CP login will work normally.

    2. Brandon mentions SAEF form can be created to resolve this issue where and how.

  • #4 / Apr 19, 2011 4:55am

    Ruslan Ka

    63 posts

    yes they do

    yes tried, Chrome, Firefox, Safari, IE8.

  • #5 / Apr 19, 2011 5:28am

    John Henry Donovan

    12339 posts

    EVENTAGRATE,

    There is no need to create separate threads for same issue unless requested to do so. We answer them all

  • #6 / Apr 21, 2011 7:50pm

    Ruslan Ka

    63 posts

    Thanks John.
    Sorry, I thought just another one is more appropriate, that’s why posted.

    The solution worked for me.

  • #7 / Apr 21, 2011 8:21pm

    Sue Crocker

    26054 posts

    Closing thread.. Feel free to start a new thread if you have any more questions.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases