Let's say, for example, that: Stack Overflow works best with JavaScript enabled. And pretty much the same for the session name.

Uploader: Satilar
Date Added: 1 June 2004
File Size: 23.22 Mb
Operating Systems: Windows NT/2000/XP/2003/2003/7/8/10 MacOS 10/X
Downloads: 8868
Price: Free* [*Free Regsitration Required]

I couldn't login into moodle any more, and I had to reverse the setting directly against the database Sign up or log in Sign up using Google. Am really confused on when I should use which call. You can delete this cookie without affecting performance - you'll just have to retype your username every time you log in.

It also records the time of their first visit, the previous visit, and the current visit. In fact, you probably want to make your fake course in a Moodle plugin or something, as including config. The simplest way is to include the file config. You are truly amazing. Btwhow do you go about accessing those variables?

MoodleSession cookie name search results | Cookiepedia

It remembers your username between pages and provides a bit of consistency. I read that a way to get the moodle session is to include the config. Both webs are on the same servermoodesession on different directories.

Hi Richard, the thing is Moodle uses it's own session storage using a different path than the standard PHP sessions.

Let's say, for example, that: I'm developing a web page using the php that will be accessed through a fake moodlesession course. There are two main types of cookie - 1st party normally used by sites to track the things you look at and remember any settings you change and 3rd party used by advertising companies to target ads based on the things you look at.

Moodle in English

Thank you in advance! Post Your Answer Discard By clicking "Post Your Answer", you acknowledge that you have read our updated terms of serviceprivacy policy and cookie policyand that your continued use of the website is subject to these policies.

Please start a new discussion topic. Then you can search the Moodle database for it, and find out the logged in user that way. Cookies A cookie is a small data file that is downloaded from certain websites. Display mode Display replies flat, with oldest first Display replies flat, with newest first Display replies in threaded form Display replies in nested form.

My two websites are on the same domain, but on different paths. But my app uses a framework, with all its folders and files, and I would prefer to keep the place clean. But we need some information from config. This will enable cookies.

I have tried this but didn't work if! Well, I actually did this, so I know it works.

Moodle in English: How to retrieve MoodleSession cookie from within (customized) login/

Both webs are on the same server, but on different directories. My local test Moodle install is located at http: Sign up using Email and Password. My two websites are on the same domain, but on different paths. Something along these lines would do it you should refactor all this into a class and encapsulate global state in there, but you get the idea: I'm developing a web page using the laravel framework that will be accessed through a fake moodle moodlesessiom.

I successfully set up a simple moodelsession sign on" between two sites once, in this way. If you personalise pages or save usernames and passwords, cookies will remember your settings. So you need to set your Moodle PHP session mooclesession as shown in the next picture the timeout value is not that important, the 'Use database for session information' and 'Cookie path' settings are the ones you need to take care of:

3 thoughts on “Moodlesession”

Leave a Reply

Your email address will not be published. Required fields are marked *