Forums | Mahara Community

Open Discussion /
How to get mahara the session


anonymous profile picture
Account deleted
Posts: 14

12 January 2011, 18:49

How to get mahara the session?

anonymous profile picture
Account deleted
Posts: 14

14 January 2011, 0:07

If another page if you want to capture session on the need to use these variables mahara

 

<?php

define('INTERNAL', 1);

define('PUBLIC', 1);

define('MENUITEM', '');

define('HOME', 1);

require('init.php');

define('TITLE', get_string('home'));

if (!$USER->is_logged_in()) {    $pagename = 'loggedouthome';    $lang = param_alphanumext('lang', null);    if (!empty($lang)) {        $SESSION->set('lang', $lang);        redirect();    }}else {    $pagename = 'home';}


print_r($_SESSION);?>

2 results