Jump to content
McKay Development

webSession fires every few seconds


Recommended Posts

client.on("webSession", set_cookies)
client.on("loggedOn", online)

function online() {
  log("logged on")
function set_cookies(cookies) {
  log("cookies set")

24 Oct 14:28:58 - test: logged on
24 Oct 14:28:59 - test: cookies set
24 Oct 14:29:01 - test: cookies set
24 Oct 14:29:04 - test: cookies set
24 Oct 14:29:08 - test: cookies set
24 Oct 14:29:17 - test: cookies set

Link to comment
Share on other sites

On 10/27/2021 at 1:52 PM, Dr. McKay said:

The first argument to the webSession callback is sessionID, not cookies. My guess would be that you have a handler for SteamCommunity's sessionExpired event that calls client.webLogOn(), which it's continually doing because it never receives valid cookies.

that's exactly what it was

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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...