By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,963 Members | 904 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,963 IT Pros & Developers. It's quick & easy.

VBA Obtain SessionID

P: 8
I am using VBA in excel to automatically login to a web site navigate to a page and download some files.
I found some code that does the login, well at least I think its working, because a cookie is generated after I run the code.

But my main problem is the web page uses PHPSESSID in all its urls.

ex. www.webpage.com/?cmd=tools&amp?sub=log_view&amp? PHPSESSID=ba6c971e34eb72770767e6165e5033a5xxxx

This preventing me from automating the download process I am trying to do, as the Session Id changes after a few hours. The only way I get my code to work is manually login into the site, cut and paste the PHPSESSID value into my code, then run the code.

Is there a way to get the PHPSESSID, either from the cookie or any other way using VBA code so I can automatically insert it into the urls I am using in my code?
Feb 2 '08 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.