Jump to content

Need Help: URL Rewriter Tags and WML *SOLVED*


Destruction

Recommended Posts

Hi there,

It's not often I find myself needing to ask for help but I've not found much in my research that could answer this and maybe someone has had the experience. 

I'm coding a wap-based application where I need to perpetuate sessions through the URL as cookies aren't a suitable option (due to some problems with a certain network which nevertheless makes a large proportion of the userbase).  I know how to set the ini options for url rewriter tags etc but they don't seem to be working with the WML.

Relevant php.ini settings
[code]
session.name = "SnapSess"
session.use_cookies = Off
session.use_trans_sid = On
arg_separator.output = "&"
url_rewriter.tags = "a=href,go=href,option=onpick"
[/code]

Problem output (from view source)
[code]
<go href="./Test2.php"/?SnapSess=d1878482419caa76af78ed4122baf0b9>
[/code]

As you can see, it is appending the SID string incorrectly but seems to work correctly with "<a href" tags.  If anyone can provide help with this it would be very much appreciated.  I'm trying to do this the "right" way without any of the ugly hacks I could use to fix it up.

Thanks in advance,

Dest
Link to comment
Share on other sites

I've figured this out so will post here in case anyone else comes across the same

The "go" tag in WML is a self closing tag, or at least the way I'm using it it is.  If there is no space in front of the /> then it fails to add it on the rewrite.  However <go href="url" /> will work.

Dest
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.