Click here to Skip to main content
15,891,762 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
hi all

I have a project for maintenance when i run it the URl comes like below
http://slts/%28S%28v2daodzknw52xf55i2hg24nm%29%29/Form/LoginPage.aspx[^]==>Login Page

http://slts/%28S%28v2daodzknw52xf55i2hg24nm%29%29/Form/Tracking.aspx?PageName=&PageMenu=TRACKING[^]==>Tracking Page


i don't know what is '%28S%28v2daodzknw52xf55i2hg24nm%29%29' in the URL.

It works well, but after logged in and if I copy that Tracking Page(2nd one link) URL into another system's URL, then it will directly come to the page.
actually it should redirect to Login Page(First one) But it is not works like that(Directly comes to Tracking page).
I dont know how the session works.

Can any one tell me that what might be the problem, and what to do to rectify this issue.
Posted
Updated 17-Apr-13 1:02am
v2
Comments
tumbledDown2earth 17-Apr-13 7:01am    
This looks like some encoded url which is serving as a token but does not expire
PrashantSonewane 17-Apr-13 7:04am    
A wild guess.. Check the web.config file for something like "sessionstate mode="InProc" cookieless="UseUri". If you find this, that means the website is configured not to share the same session in two tab in same browser (like IE8). In this case, you will see such junk ids attached in the URL... Again.. this is just a guess...
Sergey Alexandrovich Kryukov 17-Apr-13 17:17pm    
Why guessing? The general answer is pretty simple and never fully revealing, because you cannot see the server-side code. Please see my answer.
—SA
ZurdoDev 17-Apr-13 7:59am    
As PrashantSonewane says, it is likely that you have the tracking cookies in the url.
Sergey Alexandrovich Kryukov 17-Apr-13 17:19pm    
Strictly speaking, it can be pretty much anything, in the frame of possibilities I listed. Please see my comment above and my answer.
Not a very adequate question, in my opinion. If OP wanted to develop his own Web application, we could recommend something, but why guessing?
—SA

This is nothing but some URL-encoded URI: http://en.wikipedia.org/wiki/URL_encoding[^]. As you can see, %28 and %29 encodes '(', and ')' character, which are nothing special, they are even valid file path characters in most file systems.

The second URI apparently uses URI parameters. The list of parameters starts with '?' and the parameters are delimited with '&'. This is a pretty sloppy way of passing some arbitrary parameters form a HTTP response (which could be simply an anchor element in the referral page) to the requested page. Nevertheless, this technique is often used, even is some decent sites. Actually, it is used less and less, in my observation. As we cannot see the server-side script codes, it can be absolutely anything. Some parameters.

—SA
 
Share this answer
 
PrashantSonewane is correct ,

cookieless in sessiostate tag is the matter of problem, Than

i changed my webconfig file

from

<sessionstate timeout="180"> cookieless="true" mode="InProc">

to

<sessionstate timeout="180">cookieless="false" mode="InProc">

now i got my exact solution.

Thanks to PrashantSonewane and Sergey Alexandrovich Kryukov and ryanb31 for your precious reply.
And Thanks to code project
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900