Aparajita,

Thanks.

Now I have a more fundamental question.

We already have a number of purely A4D apps using Sessions. They work
fine. Have for years.

My Active4D.ini session settings all use the defaults (blank values). The
On Session Start method in Active4D.a4l is NOT enabled (still commented
out).  In other words,  I don't have any global session settings set.

In the site mentioned below, I can't get a session established.

>From the manual:

Even though Active4D generates a session ID when a client accesses your
site, it does not
create the session in memory or send a session cookie to the client unless
when one of
the following happens:
* The On Session Start event handler is defined (it need not set any
session data)
* A script sets some session data
* A script uses the session command to get a session iterator
If one of these conditions is not met, the next time that client browser
accesses the
server, a new session ID will be generated because there will be no
³ACTIVE4D_SESSIONID² cookie.


Write to console shows me that code that would set session data is being
called, but the default Active4D session cookie isn't being sent.

method "acr_start_session" ($uid; $cookie)

                session{"cas_uid"} = $uid
                session{"cas_cookie"} = $cookie
                session{"type"} = ACR_SESSION_TYPE
                session{"lastuse"} = timestamp

                set session timeout (30)
                

        end method


I have looked at the code for all of my other sites that successfully use
sessions and I don't see anything fundamentally different than what I'm
trying to do here.


Any ideas why the Active4D session cookie is not being sent?

The one thing that is different is that since this site uses mod_auth_cas
Apache is setting a cookie containing the CAS token. Could that cause a
conflict?

Thanks,

-- Brad Perkins


On 6/4/12 6:45 PM, "Aparajita Fishman" <[email protected]>
wrote:

>> Is is possible to go the the other way and have a 4D method update data
>>for a particular session?
>> 
>> Could A4D Execute text (or A4D Execute file) be used to accomplish
>>this?  I have to admit that I've never used that command.
>
>You can use A4D Execute text, passing the session id (encrypted id, not
>internal id) as a query parameter ("sid" by default, or whatever you have
>configured in Active4D.ini).
>
>Regards,
>
>   Aparajita
>   www.aparajitaworld.com
>
>   "If you dare to fail, you are bound to succeed."
>   - Sri Chinmoy   |   www.srichinmoy.org
>
>_______________________________________________
>Active4D-dev mailing list
>[email protected]
>http://list.aparajitaworld.com/listinfo/active4d-dev
>Archives: http://active4d-nabble.aparajitaworld.com/

_______________________________________________
Active4D-dev mailing list
[email protected]
http://list.aparajitaworld.com/listinfo/active4d-dev
Archives: http://active4d-nabble.aparajitaworld.com/

Reply via email to