Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2008-08-27 06:09:39

udx6bs
New member
Registered: 2008-08-27
Posts: 2

Does Xinha reload my page somehow?

Please Help me on this. I tried to search the forum but without any success. I tried this on Firefox3 and Opera 9.5. PHP is version 4.x and xinha version is 0.95

My php code simplified looks like this:


<?php
session_start();
$a = $_SESSION['x'];
trigger_error($a);

...

$_SESSION['x'] += 1;

...
$b = $_SESSION['x'];
trigger_error($b);
?>



I take the value of $b and compare it to the value of $a after i reload it.

If i have Xinha loaded with no textarea element everything is fine and it show me the same values for $a (after a reload) and $b (before reloading).

If i have one textarea element where xinha starts loading and i reload my browser before xinha can finish the loading than $a == $b+1
If i have one textarea element where xinha finishes loading and after that i reload my browser than $a == $b + 2

My english is not that good, i hope somebody understands me.

The thing is i pass another variable through post or get and compare it to my inner variable to prevent doing things again through browser back button.

Can anybody please help me on this or explain why it increments depending on Xinha load status.

Offline

#2 2008-08-30 15:14:45

udx6bs
New member
Registered: 2008-08-27
Posts: 2

Re: Does Xinha reload my page somehow?

Can nobody help me?

Offline

#3 2008-09-02 04:43:27

ray
Xinha Administrator
From: Germany
Registered: 2005-03-23
Posts: 521
Website

Re: Does Xinha reload my page somehow?

That's not very likely, as you would see it when the page reloads in the middle of things, wouldn't you? If you install Live HTTP Headers (Firefox Extension) you can look at the actual http requests made and see if the script is really requested twice. If not so, the secret probably lies somewhere in your PHP code

Offline

Board footer

Powered by FluxBB