faqts : Computers : Programming : Languages : JavaScript : Language Core : Session Objects

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

6 of 21 people (29%) answered Yes
Recently 1 of 10 people (10%) answered Yes

Entry

Is it possible to create a method within a session object?

Feb 23rd, 2000 21:45
Nathan Wallace, Martin Honnen


I am able to do
  function f() { Response.Write('Kibology'); }
  Session('f') = f;
and to retrieve
  var f = Session('f');
on another page where
  typeof f
shows 
  function
but I get an error when trying to call f as in
  f()
further on.