Welcome Guest, Not a member yet? Register   Sign In
[SOLVED] Session userdata is being lost
#6

[eluser]TheFuzzy0ne[/eluser]
Yes, the session library automatically creates/reads an existing session, which is why I asked. If you called on sess_create() manually, it would kill the old session, which would explain your problem. Since you're not, I'm not quite sure where the problem lies.

What I was referring to by the other controllers working as expected, was that you can pass in several extra segments, and CodeIgniter will process them correctly. Sometimes CodeIgniter fails to parse the URI correctly as the uri_protocol is not set correctly. Sorry for not making myself clearer. I'd suggest you create a test controller, and try it out:

Code:
<?php

class Test extends Controller
{
    function func($arg1="", $arg2="")
    {
        var_dump($arg1);
        echo "<br />";
        var_dump($arg2);
    }
}

Obviously, you'd need to call on it something like this:

http://yoursite.tld/index.php/test/arg1/arg2

This should output something like:

Code:
string(4) "arg1"
string(4) "arg2"


Messages In This Thread
[SOLVED] Session userdata is being lost - by El Forum - 06-29-2009, 02:09 AM
[SOLVED] Session userdata is being lost - by El Forum - 06-29-2009, 05:39 AM
[SOLVED] Session userdata is being lost - by El Forum - 06-29-2009, 05:56 AM
[SOLVED] Session userdata is being lost - by El Forum - 06-29-2009, 06:01 AM
[SOLVED] Session userdata is being lost - by El Forum - 06-29-2009, 06:12 AM
[SOLVED] Session userdata is being lost - by El Forum - 06-29-2009, 06:23 AM
[SOLVED] Session userdata is being lost - by El Forum - 06-29-2009, 06:31 AM
[SOLVED] Session userdata is being lost - by El Forum - 06-29-2009, 06:34 AM
[SOLVED] Session userdata is being lost - by El Forum - 06-29-2009, 06:48 AM
[SOLVED] Session userdata is being lost - by El Forum - 06-29-2009, 06:50 AM
[SOLVED] Session userdata is being lost - by El Forum - 06-29-2009, 07:04 AM
[SOLVED] Session userdata is being lost - by El Forum - 06-29-2009, 07:15 AM
[SOLVED] Session userdata is being lost - by El Forum - 06-29-2009, 07:37 AM
[SOLVED] Session userdata is being lost - by El Forum - 06-29-2009, 07:41 AM
[SOLVED] Session userdata is being lost - by El Forum - 06-29-2009, 07:45 AM
[SOLVED] Session userdata is being lost - by El Forum - 06-29-2009, 07:50 AM
[SOLVED] Session userdata is being lost - by El Forum - 06-29-2009, 07:54 AM
[SOLVED] Session userdata is being lost - by El Forum - 06-29-2009, 07:59 AM
[SOLVED] Session userdata is being lost - by El Forum - 06-29-2009, 08:06 AM
[SOLVED] Session userdata is being lost - by El Forum - 06-29-2009, 08:10 AM
[SOLVED] Session userdata is being lost - by El Forum - 06-29-2009, 10:11 AM
[SOLVED] Session userdata is being lost - by El Forum - 06-29-2009, 11:50 PM
[SOLVED] Session userdata is being lost - by El Forum - 06-30-2009, 12:12 AM
[SOLVED] Session userdata is being lost - by El Forum - 06-30-2009, 12:24 AM
[SOLVED] Session userdata is being lost - by El Forum - 06-30-2009, 04:59 AM
[SOLVED] Session userdata is being lost - by El Forum - 06-30-2009, 05:54 AM
[SOLVED] Session userdata is being lost - by El Forum - 06-30-2009, 06:09 AM



Theme © iAndrew 2016 - Forum software by © MyBB