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

Store Quiz Score In database 5 years 1 month ago #1379

  • John Smith
  • John Smith's Avatar
  • Offline
  • Moderator
  • Posts: 360
  • Thank you received: 55
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
The administrator has disabled public write access.

Store Quiz Score In database 5 years 1 month ago #1382

  • Sanjit
  • Sanjit's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 4
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:
Last Edit: 5 years 1 month ago by Sanjit. Reason: the session values are not showing
The administrator has disabled public write access.

Store Quiz Score In database 5 years 1 month ago #1385

  • John Smith
  • John Smith's Avatar
  • Offline
  • Moderator
  • Posts: 360
  • Thank you received: 55
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
Last Edit: 5 years 1 month ago by John Smith. Reason: Best not to use the Moodle one!!
The administrator has disabled public write access.
The following user(s) said Thank You: Sanjit
  • Page:
  • 1
  • 2
Moderators: John Smith
Time to create page: 0.243 seconds
Powered by Kunena Forum