| | 11431 | =for html <p>This tag is usually only used in the context of system |
|---|
| | 11432 | templates. The blog accesses this data once per user session via javascript. |
|---|
| | 11433 | See the <a href="/default_templates/4.2/javascript.mtml">JavaScript index |
|---|
| | 11434 | template from the default template set</a> for an example of this.</p> |
|---|
| | 11435 | |
|---|
| | 11436 | B<Example:> |
|---|
| | 11437 | |
|---|
| | 11438 | The tag L<UserSessionState> will output the following JSON data structure |
|---|
| | 11439 | (formatted with whitespace for readability): |
|---|
| | 11440 | |
|---|
| | 11441 | { |
|---|
| | 11442 | "sid":"Hk8lPRoJ1FBuxnQrdZUUvC8qHo9ngmgyNDEKLIkW", |
|---|
| | 11443 | "userpic":"/mt-static/support/assets_c/userpics/userpic-1-100x100.png", |
|---|
| | 11444 | "profile":"", |
|---|
| | 11445 | "auth_type":1, |
|---|
| | 11446 | "is_trusted":1, |
|---|
| | 11447 | "is_anonymous":0, |
|---|
| | 11448 | "name":"Melody P Nelson", |
|---|
| | 11449 | "email":"melody@sixapart.com", |
|---|
| | 11450 | "is_author":1, |
|---|
| | 11451 | "is_banned":0, |
|---|
| | 11452 | "is_authenticated":1, |
|---|
| | 11453 | "can_comment":1, |
|---|
| | 11454 | "can_post":1, |
|---|
| | 11455 | "url":"http://sixapart.com" |
|---|
| | 11456 | } |
|---|
| | 11457 | |
|---|