Inside the Active Worlds Technology : Sessions

Featured Article
When: January 11, 2008
Category: Expert Guide

This article (part 3) discusses session numbers as a method of identifying users.

Sessions

Traditionally there have been 2 ways of identifying users in Activeworlds, one is through their name, and while unique throughout the universe for tourists and citizens these names are not unique for bots, there is however a special identifier unique to every connection to the universe server – that is the session number.

The session number is a 16 bit integer that uniquely identifies each user in the universe at any given time, the session number is established when a login is made to the universe server and changes whenever the client makes another login such as changing privileges or simply logging out and in again.

Originally session numbers were sequential; the first person to log in was session 1, followed by session 2, session 3 and so forth. However with the start of 4.1 this session number was randomised to help with security after it was found to be vulnerable to attack.

Session number 0 is a special context, and it denotes all users within a given world. Through this session number it is possible to send a broadcast to all users without needing to know where in the world they are.

Sessions and the SDK

With the introduction of the SDK almost 10 years ago, the session number became recognised the absolute method of referring to an avatar, all avatar related commands in the SDK took either a session number as an argument, or as an enumerated attribute. Despite this several bots were still produced that based their identification upon user name which was usually provided by the SDK along with a session number.

There are 2 major attributes that are associated with sessions with the first of which being AW_AVATAR_SESSION. This enumerated attribute defines the relevant avatar for all events other than chatting such as enter, changing, deleting, clicking and object actions. The second major enumerated attribute being AW_CHAT_SESSION which identifies the avatar that spoke in relation to a chat event – one of the biggest problems for new bot makers is the confusion caused between these 2 attributes, with bugs often introduced by programmers using AW_AVATAR_SESSION in place of AW_CHAT_SESSION.

There are of course other enumerated attributes and arguments that provide or set session numbers, these may be found in the SDK documentation along with the aw_session function that defines the session for the current instance.

Future Changes

Although not currently implemented, there has been discussion during 2006 / 2007 of the possibility of increasing the range of the session number to 32 bits to provide additional security due to the randomisation range.
However, at the time of discussion these changes were not made as it was unknown how many bots still used 16 bit integers (Short in C++ and Integer in VB) to store sessions.

Despite sessions being allocated to tourists, citizens and bots, a major universe will rarely have allocated more than 1000 session numbers at any given time.
Link to this Article
BBCode: [url=http://www.awportals.com/chronicles/article.php?a=234]Inside the Active Worlds Technology : Sessions[/url]
 
Digg:
Comments
 There are no comments.
Related
- AW Hosts e-Learning for Earth Web 26% relevance
- CY Awards Retired by Alphabit 24% relevance
- Inside the Active Worlds Technology : The Uniserver 23% relevance
- Inside the Active Worlds Technology : The Uniserver Part 2 21% relevance
- Piko Island preps for launch 16% relevance

Chronicles

 Front Page
 Sitemap (Chronicles)

Categories

 Events
 Worlds
 Technology
 Business
 People
 Community
 Universe
 Websites
 News
 SW City
 New Arklay
 Expert Guide

Buying a World?

Check out our great deals on hosting when you purchase your worlds through Awportals.com.

See our rates card for our comprehensive options for purchasing your world today and earn up to a 30% discount on hosting and other services.

Latest News

Maple Valley in Full Bloom
When: Jun 29, 2008
World: Yellow
Category: Worlds
   
A new and unique building area in Yellow World.

Click here to read in full

AWMyths 1st Anniversary Contest
When: Jun 29, 2008
World: AWMyths
Category: Events
   
A contest to create your own quest in AWMyths world by July 15th.

Click here to read in full

'Ashianae’s Journey' Galaxy Opens for Alpha Testing
When: Jun 27, 2008
Category: Technology
   
Poseidon seeks alpha-testers for game in development.

Click here to read in full

AWTeen to Hold Pioneer CAV Contest
When: Jun 25, 2008
World: AWTeen
Category: Events
   
Details concerning a custom avatar contest this weekend in AWTeen.

Click here to read in full

Forums Integrate Social Networking Infrastructure
When: Jun 21, 2008
Category: Websites
   
AWForums updated to support user groups, mutual friendships, photo albums and retooled user profiles.

Click here to read in full

Babylon Building Competition Finishes Up
When: Jun 20, 2008
World: AWTeen
Category: Events
   
Details concerning the Babylon Building Contest and how to vote for your favorite.

Click here to read in full

On The Way To The Forums...
When: Jun 19, 2008
Category: Community
   
An opinion essay by Absolute Monarch concerning the social division on the AWForums.

Click here to read in full

AWFX Restored to Original State
When: Jun 18, 2008
World: AWFX
Category: Worlds
   
AWFX World restored after extended downtime and presenting a new sharing format.

Click here to read in full

Winter World Open For Viewing
When: Jun 18, 2008
World: Winter
Category: Worlds
   
After several months of development, Winter opened today for public viewing.

Click here to read in full

AW Press Corps Launched
When: Jun 17, 2008
Category: Community
   
Press release from the Activeworlds Press Corps.

Click here to read in full

Registration Benefits

Being a registered member of Awportals has great advantages such as:

* Being able to do unlimited queries on any of our public object search paths.

* Linking your citizenships and editing your citizen profile - including earning reward badges to show your achievements.

* Access members-only features such as the seedbot and command generators.

Newsgroup Archives

The newsgroups may be gone but you can still access them through our new archives section.

Currently we have community and bots sections archived.
Copyright (c) Mark Randall 2005-2008. All rights reserved.
Awportals.com is an recognised distributor of worlds within the Activeworlds universe. Activeworlds is a legal trademark of Activeworlds Incorporated.