Code only works when you restart your PC

Asked

Viewed 103 times

1

I am creating an application mostly in PHP, and occurred a few times when making a call in Java, Jquery or CSS and sometimes even another page in PHP and does not work as it should.

I went through the code and everything was ok. So I restart the PC once or twice and the code works perfectly.

Does anyone know why ?

  • Can you demonstrate the code ? .

  • I can’t demonstrate the code now, but that’s what I’m looking for. Sometimes I make some change in the code, plus the browser searches for the cache and ends up giving error.

  • Aren’t you getting some session value? don’t need to restart the pc, just the one served in xampp.

  • I am not getting any session value. Next time I will try to restart only XAMPP. It is much more practical.

1 answer

2

Already happened to me something similar, I was developing a web page for my TCC all in Javascript, when publishing for test, I realized that there was an error, I corrected the same and updated the page and nothing... Not even restarting. So I told my friends to test it on his computers and I was free of the error.

So, it is very likely that your error is actually an 'error' in the browser that is saving Javascript and CSS in the Cache.

Probable Solutions:
1) Restart the server only
2) Clear browser cache (most recommended)
3) Use anonymous tab

Browser other questions tagged

You are not signed in. Login or sign up in order to post.