The place for more technical questions for those who want to create new pagetypes or bespoke functionality.

Store Quiz Score In database

More
12 years 4 months ago #1379 by JohnSmith
Replied by JohnSmith on topic Store Quiz Score In database
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.

  • sanjit
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 4 months ago - 12 years 4 months ago #1382 by sanjit
Replied by sanjit on topic Store Quiz Score In database
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: 12 years 4 months ago by sanjit. Reason: the session values are not showing

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

More
12 years 4 months ago - 12 years 4 months ago #1385 by JohnSmith
Replied by JohnSmith on topic Store Quiz Score In database
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: 12 years 4 months ago by JohnSmith. Reason: Best not to use the Moodle one!!
The following user(s) said Thank You: sanjit

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

Moderators: JohnSmith
Time to create page: 0.181 seconds
Copyright © 2026 The Xerte Project.
Xerte logo Apereo logo OSI Logo