Advertisement:

Author Topic: What is this code doing?  (Read 2225 times)

Offline bulliedog

  • Semi-Newbie
  • *
  • Posts: 94
  • Gender: Male
  • No really...I'm a llama!
What is this code doing?
« on: June 01, 2004, 10:31:12 AM »
I have the following code on my reply and start new topic screens.  It obviously results in a blank button, but what what is it dong there?  I am using SMF Beta 5.

Code: [Select]
<img src="http://www.mysite.com/forum/Themes/default/images/blank.gif" alt="" id="fetchSessionTemp" />

Edited to add:
The button appears right next to the Post and Preview buttons.
« Last Edit: June 01, 2004, 10:33:44 AM by bulliedog »

Offline Grudge

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,742
  • Gender: Male
  • Unofficial nuisance
Re: What is this code doing?
« Reply #1 on: June 01, 2004, 10:33:21 AM »
It is a cunning way of keeping your session alive. Every so often javascript changes the src of that image to a keep alive php script that attempts to keep your session going. If you remove it you will get more timeouts.
I'm only a half geek really...

Offline bulliedog

  • Semi-Newbie
  • *
  • Posts: 94
  • Gender: Male
  • No really...I'm a llama!
Re: What is this code doing?
« Reply #2 on: June 01, 2004, 10:34:54 AM »
I get it now...thanks Grudge.  I guess my problem is that I over-wrote the truely blank.gif with a blank button.

*sigh*