son caocao
Member-
Posts
3 -
Joined
-
Last visited
son caocao's Achievements
Newbie (1/14)
0
Reputation
-
Cubecart 6.1.12 $GLOBAL('session') is emply in order overview.
son caocao replied to son caocao's topic in Technical Help
That's really helpful, thanks a lot -
Cubecart 6.1.12 $GLOBAL('session') is emply in order overview.
son caocao replied to son caocao's topic in Technical Help
Thanks @bsmither for quick reply, Can you pls guide me or better if u can give me a sample how to attach a security token into an ajax request. Actually, I cannot find any example on ajax request that attach security token for cubeCart. Best Regards, Son And also, @bsmither I have compare 2 versions 6.1.10 and 6.1.11, it got successfully run on .1.10 but not on 1.11 and having same issue that I mentioned above And the difference is in session.class.php, in 1.11 the session_prefix have change follow the ADMIN_CP. $session_prefix = CC_SSL ? 'S' : ''; if(ADMIN_CP) { $session_prefix .= '_ACP'; } Not sure what is the purpose of that changing on session_prefix -
Hi experts, In order overview, I inject a form that doing refund for an order and the handler function is also call to admin class for authorization. But the authorization is always failed, I realize that the $GLOBAL('session') is an empty array when I tried to var_dump that inside permission function of admin class. I also tried to install my plugin in old version of cubecart like 6.1.5, its working fine and the $GLOBAL('session') having value of admin_id. Can anyone tell me what is the issue, what can I change to make it work on cubecart latest version ? Best Regards, Son