Passer la navigation

[Résolu] create a session in user form

This support ticket is created Il y a 4 years, 9 months. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Fuseau horaire du supporter : Asia/Karachi (GMT+05:00)

Ce sujet contient 1 reply, a 2 voix.

Dernière mise à jour par Waqar Il y a 4 years, 9 months.

Assisté par: Waqar.

Auteur
Publications
#2150539

Dears,

I would like to create a session in the user form to send the User_id from the form to outside PHP page.
How to do this.

#2151065

Hi,

Thank you for contacting us and I'd be happy to assist.

It is generally not recommended to use PHP sessions within the WordPress environment, as it can result in performance, cache, and security challenges.

If your goal is to perform certain actions using the user's ID, after the user form is submitted, you can use the Toolset Forms API hooks instead:
https://toolset.com/documentation/programmer-reference/cred-api/#cred_save_data

I hope this helps and please let me know if you need any further assistance around this.

regards,
Waqar