PHP Session Variables
Go to solution
Solved by Mr_KoKa,
There are few things.
You reload page just after calling ajax. Ajax is async, so it puts a call on js event queue, but reload is immediate, so the possibility is that you reload page before ajax request manages to fire, this is why it may work on localhost as there is not much delay, and it is not working on remote host.
to fix this reload your page inside complete callback of ajax method. It depends of what version of jQuery do you use.
Other thing is, why do you use ajax when you reload page anyway? You use ajax to get data without page reloading.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now