Skip to main content

how to maintain session information in swings

1 reply [Last post]
nanil21
Offline
Joined: 2010-03-26
Points: 0

Hi,
I am using swings as front end. I am using HttpURLConnection class to get connected to a url which has login page. Once I send the request using POST method with login credentials, I am able to see the response and it workds fine. Now if I send another request to read some other content, the response from that new page is not as expected but displays that login information is missing to reach that page.

From my understanding, the session has to be maintained to keep the login details in tact so that it will not display login details missing.

Can anyone of you tell me how to maintain session information to work around this problem in swings

thanks,
kumar

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
typeee
Offline
Joined: 2009-04-17
Points: 0

You have to send the session id as a cooke along with your subsequent requests. For example jsessionid , phpsessid, etc