Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > .NET Languages
You last visited: Today at 06:19

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



WebClient changing sessionid

Discussion on WebClient changing sessionid within the .NET Languages forum part of the Coders Den category.

Reply
 
Old   #1
 
Buckyx's Avatar
 
elite*gold: 0
Join Date: Jun 2009
Posts: 177
Received Thanks: 2
WebClient changing sessionid

Can someone give an idea why webclient changes sessionid sometimes after async request?

I run first http request from UI thread, other requests are sent from handler methods to those response from separate thread


it wouldnt be a problem but theres an AjaxToken I need to use that is linked to sessionid and I somehow cant recieve the correct token at the time needed

edit: another stupid question got answer by myself. solved when I used webbrowser initially login, then transfered cookies to webclient then it always kept sessionid and ajaxtoken
Buckyx is offline  
Old 07/07/2016, 14:02   #2
 
UniveX''s Avatar
 
elite*gold: 75
Join Date: Mar 2009
Posts: 528
Received Thanks: 21
Quote:
Originally Posted by Buckyx View Post
Can someone give an idea why webclient changes sessionid sometimes after async request?

I run first http request from UI thread, other requests are sent from handler methods to those response from separate thread


it wouldnt be a problem but theres an AjaxToken I need to use that is linked to sessionid and I somehow cant recieve the correct token at the time needed

edit: another stupid question got answer by myself. solved when I used webbrowser initially login, then transfered cookies to webclient then it always kept sessionid and ajaxtoken
You need to assign a cookie container to your WebClient, otherwise it won't store cookies correctly.

Simple example that should fix it for you:
Not the best code, but it should do the trick for you.
UniveX' is offline  
Reply


Similar Threads Similar Threads
[HELP]SessionID
11/05/2013 - Facebook - 1 Replies
I not search sessionid :( Tutorial in youtube is not working HELP
Need some pro help can't get sessionId DRAGON CITY
10/30/2013 - Dragon City - 9 Replies
I am using google chrome trying to do some gold food gem hack for dragon city. Everyhack require userId and sessionId. I know how to use google chrome .I can find from (((Ctrl+u - Ctrl+f)) userID BUT THERE IS NO sessionId or anything with *sess* I spend 2 hour and search everything with start sess there is no sessionId or something like this PLEASE help me :=(((( PS: I watched every youtube video that tell find your sessionId... everytime ı do video guide there is no sessionId..
SessionID?
04/19/2013 - Infestation - 8 Replies
Hallo Leute.. Seit dem neuen Launcher Update 1.1.7 findet man nicht mehr die sessionID bei 'my account' und dann wollt ich fragen ob ihr vllt wisst wo man die findet da ich bei uknowncheats. gelesen hab das man die noch herrausfinden kann aber da ist alles in English und ich bin nicht der beste in English und verstehe nur die hälfte.. Würde mich freuen wenn einer es weist.. Danke schon mal im Voraus.
LogIn über SessionID - Seafight
06/05/2012 - Seafight - 0 Replies
Hey Community! Ich würde mich gerne über eine SessionID einloggen. Bis zum Refactoring konnte ich dies auch. Leider funktioniert dies nicht mehr so, wie es vor dem Refactoring geklappt hat. Gibt es hier jemanden, der mir erklären kann, wie ich mich nur über die SessionID in einen Account einloggen kann?
Bei kBot mit der SessionID einloggen ?
08/20/2011 - DarkOrbit - 7 Replies
Hallo :) Ich wollte kurz mal fragen ob man sich bei kBot auch einloggen kann indem man seine SessionID und das Serverkürzel angibt, so wie das bei vielen gratis Bots ist.



All times are GMT +2. The time now is 06:20.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.