Waqas Saeed Posted July 9, 2021 Share Posted July 9, 2021 How do I create a session in gateway file and then retrieve the values in callback file. after redirecting to callback. Mainly, To do this https://www.w3schools.com/php/php_sessions.asp in WHMCS like dummies 0 Quote Link to comment Share on other sites More sharing options...
0 developer _WHM_CS Posted September 23, 2021 Share Posted September 23, 2021 Hello @Waqas Saeed for add or get a item in session you can use this class WHMCS\Session::set("item", "values"); WHMCS\Session::get("item"); attention, if a client uses Chrome when he is redirecting to the callback. Chrome removes the cookies, therefore, all sessions will be expired 0 Quote Link to comment Share on other sites More sharing options...
Question
Waqas Saeed
How do I create a session in gateway file and then retrieve the values in callback file. after redirecting to callback.
Mainly, To do this https://www.w3schools.com/php/php_sessions.asp in WHMCS like dummies
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.