• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Getting session data

Getting session data 13 years 2 months ago #16726

Hello,
I am working on storing sessions data for users who come to my site from partner websites. I will be paying a cut to the partner website in case of conversions, i.e. if their user fills out the form on my website and clicks Submit. Obviously all my forms are RS Forms. How can I implement this functionality?

#I am not a hard core developer, so any detailed help will be much appreciated.

Thanks.
The administrator has disabled public write access.

Re: Getting session data 13 years 2 months ago #16737

  • royce
  • royce's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 52
  • Thank you received: 5
One way would be to write a plugin that is triggered from the 'rsfp_f_onAfterFormProcess' event. That function is called after the form is successfully processed by RSFP and is passed the SubmissionId. You can query the DB to get the form fields and perform the required processing.
The administrator has disabled public write access.

Re: Getting session off or logout 11 years 11 months ago #23352

Hi, I want to logout the current user when this finish form when click on bottom Thank You message.
How can I put this code to close session?...
Whe edit html to write php code, this can not work fine, 'cose show me the entire code liek a <p></p> ....

<? session_destroy();
//session is now over....

header('Location: www.mysite.com/index.php');
//relink to a page, with user logged out
?>

or any oter suggestion is welcome...
:cheer:
The administrator has disabled public write access.

Re: Getting session off or logout 11 years 11 months ago #23353

Ok, I found how to... but... the Tnak you message not appear, becose the code was written directly into
PHP Script ::: The $thankYouMessage string contains the HTML code of the Thank You Message.

session_destroy(); //session is now over
header( 'Location: www.mysite.com/index.php' );
//relink to a page, with user logged out

How can I us this wayform using $thankYouMessage string?
The administrator has disabled public write access.

Re: Getting session off or logout 11 years 5 months ago #25777

Create a thank you article and menu item and then use the following script called after form has been processed.

$app = JFactory::getApplication();
$app->logout( $user_id );
$app->redirect('your-thank-you-item-link-here.com');


This will log out the user and then redirect to the thank you page.
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!