Supporting each other

Community forums

Welcome, Guest
Username: Password: Remember me
The place for more technical questions for those who want to create new pagetypes or bespoke functionality.
  • Page:
  • 1
  • 2

TOPIC:

Store Quiz Score In database 10 years 2 weeks ago #1379

  • jjs
  • jjs's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 397
  • Thank you received: 71
Hi,

What is your application? Are you starting a session after verifying that the user is logged in? You need to create a Xerte session as happens here:

github.com/thexerteproject/xerteonlineto.../auth_config.php#L45

John

Please Log in or Create an account to join the conversation.

Store Quiz Score In database 10 years 2 weeks ago #1382

  • sanjit
  • sanjit's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 4
  • Thank you received: 0
Hi,
I am using PHP Yii Framework. I have created a view within which xerte is called with an iframe.
I have passed the the session values from this view to xerte (integration.php).
$_SESSION[toolkits_firstname] = $model->first_name;
$_SESSION[toolkits_surname] = $model->last_name;
$_SESSION[toolkits_logon_username] = $model->username;

The code below shows how xerte is called.
<?php
$_SESSION[toolkits_firstname] = $model->first_name;
$_SESSION[toolkits_surname] = $model->last_name;
$_SESSION[toolkits_logon_username] = $model->username;
?>
<iframe src="/talent/xerte" width="100%" height="700"></iframe>

The above session values are taken by integration.php
####################################################################

In the Auth config file authentication method is $xerte_toolkits_site->authentication_method = 'Guest';

I have attached an screen shot of the application.

Regards,
Sanjit
Attachments:

Please Log in or Create an account to join the conversation.

Last edit: by sanjit. Reason: the session values are not showing

Store Quiz Score In database 10 years 2 weeks ago #1385

  • jjs
  • jjs's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 397
  • Thank you received: 71
There may be other things going on, i'm not sure, in the background...

The Authentication is abstracted out so you might be best trying to create a new file for your environment, such as these:

github.com/thexerteproject/xerteonlineto...Xerte/Authentication

Any of them (other than Moodle - which has a lot more going on in the background in other files) might be a good start...

John
The following user(s) said Thank You: sanjit

Please Log in or Create an account to join the conversation.

Last edit: by jjs. Reason: Best not to use the Moodle one!!
  • Page:
  • 1
  • 2
Moderators: jjs
Time to create page: 0.074 seconds
Copyright © 2024 The Xerte Project.
Xerte logo Apereo logo OSI Logo

Search