Welcome Guest, Not a member yet? Register   Sign In
using sessions from one function to another
#6

[eluser]Prasad.P[/eluser]
Hi GTECH,

Thank you very much for your fast reply.

I have checked the code, there is no such space. Whatever the code you had given above as TEMP Controller, i just copied and pasted it.

<?php
class Temp extends Controller {

function Temp()
{
parent::Controller();
$this->load->library('session');
}
function index()
{
$this->session->set_userdata('testkey','testvalue');
echo 'set session';
}
function getsess() {
echo $this->session->userdata('testkey');
}
}
?>


Messages In This Thread
using sessions from one function to another - by El Forum - 05-21-2008, 01:02 AM
using sessions from one function to another - by El Forum - 05-21-2008, 05:55 AM
using sessions from one function to another - by El Forum - 05-21-2008, 08:07 AM
using sessions from one function to another - by El Forum - 05-21-2008, 08:45 AM
using sessions from one function to another - by El Forum - 05-21-2008, 09:50 AM
using sessions from one function to another - by El Forum - 05-21-2008, 10:06 AM
using sessions from one function to another - by El Forum - 05-21-2008, 10:15 AM
using sessions from one function to another - by El Forum - 05-21-2008, 10:28 AM



Theme © iAndrew 2016 - Forum software by © MyBB