Forums | Mahara Community

Open Discussion /
How to get mahara the session


anonymous profile picture
Deleted user
Posts: 14

12 January 2011, 6:49 PM

How to get mahara the session?

anonymous profile picture
Deleted user
Posts: 14

14 January 2011, 12:07 AM

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