/ Forside / Teknologi / Udvikling / ASP / Nyhedsindlæg
Login
Glemt dit kodeord?
Brugernavn

Kodeord


Reklame
Top 10 brugere
ASP
#NavnPoint
smorch 9259
Harlekin 1866
molokyle 1040
Steffanst.. 758
gandalf 657
smilly 564
gibson 560
cumano 530
MouseKeep.. 480
10  Random 410
Session AND objects (NOT SessionObjects)
Fra : KaReL


Dato : 30-04-01 12:22

Perhaps you guys know this REALLY strange problem:

In doc A:
Set Session("Persoon") = New Persoon
Session("Persoon").Init(objRs.Fields("UserID").Value)

So i made a new persoon (class)
then i init it providing the unique key from the database

After that, i checked if it was an object (it was) and if i could use
getname ... (property get's) (i could).

Now in document B:
IsObject(Session("Persoon")) returned True

BUT!! when i tryed Session("Persoon").GetName it says "Deze eigenschap of
methode wordt niet ondersteund door dit object" which is in english "This
property or method cannot be ?understood?' by this object".

but in the first doc i tried it already & it worked? Session timeout = 2 so
session can't be timed out. Neither have i closed the browser ...

Probably you could help me? I don't need a full explanation (too much time 4
you), but a quick link where i can read about this could be handy.

Thx in advance!

karel.verbiest@advalvas.be




 
 
Søg
Reklame
Statistik
Spørgsmål : 177511
Tips : 31968
Nyheder : 719565
Indlæg : 6408590
Brugere : 218887

Månedens bedste
Årets bedste
Sidste års bedste