Change Password Form Not Getting global variable.

Hi All,

I am having a weird problem, i created a change password form where will get a username (global variable) from login control form. Problem is when i access the sites using localhost the change password form able to retrieve the global variable, but if i access the site with ip/ domain name, the form unable to get my username global variable. Please kindly advice.

2019-05-28_17-03-57.jpg

2019-05-28_17-04-35.jpg

That is odd. Have you checked that the type of global variable matches your system in a consistent way? I.e. a global as get in stead of session etc. Other option to look at is to see if the security is in control. Under your development behaviour can be different then under production. Just a few thoughts.

Hi Aducom,

At first i generate the login page using build-in security module, then i replace it with my custom build bootstrap login page and i had copy all the necessary code to my new login page including the event code and internal library code. Please refer to the attached file for the comparison between old login page and new login page, by using old login page i have no issue to get the global variable but it is not happen to the new login page.

new_login.jpg

old_login_.jpg

There has to be some difference, though. You could switch your approach to add the bootstrap code into the scriptcase generated application. Still, just copying the code doesn’t necessarily mean that you have set the globals correctly. Did you verify that they share the same space? ($session, $get and/or $post)

Hi Aducom,

I found it is cause by my external html template, but i don’t know why it cause scriptcase unable to pass the parameters. I solve the problem by editing the sample login html template provided by scriptcase.