Have problem with maintaining session in a Website sone in CakePHP - cakephp

Well as I have posted earlier too...I have created a site in two languages.One with URL www.mainDomain.com(English) and other with www.fr.subDomain.com(French).Both are done in CakePHP,in french I have just changed the views of it to French.But the problem is,when anybody login's in English version and then switches to the French version,the session does'nt recognizes it and ask for login again.It has become to be the biggest bug in the Web application which I have done till far.How can manage this thing? Is there any way so that I can manage session on the same time?Please suggest me some thing,so that I can resolve this thing...!!!
Thanks in advance

Perhaps this may help you: http://www.cake-toppings.com/tag/subdomains/

Related

How to drop down a list of countries automatically with cakephp3

Hello i'm a biginner in cakephp and i'm trying to create a simple app of registration and authentication
In the registration form i wanna the country input lists all countries automatically. i've done researches but i hadn't something helpful
Can anybody help me and thanks in advance
This is hardly cake-specific, or a new issue. A little googling goes a long way, and without even leaving this site you have a ton of useful pointers here Is there a centralized list of country names that can be used for web drop down boxes (and validation)

SharePoint 2013 external lists only work in page edit mode

I have a site page with 3 external lists which display data through BCS connecting to an Azure SQL database as a web part.
They all display their data correctly when the page is in edit mode, but when saved, it just continually loads each web part and doesn't seem to finish.
Has anyone experienced the same issue?
[Edit]: Loading the lists on their own when not inserted to a page will work fine.
I seem to have solved my own issue.
Setting the web part miscellaneous properties to "Server Render" has all web parts loading their external data as expected.
My own inexperience seems to be the issue here, but I'm sure people familiar with web parts would know this.
This answer may helps others in the same situation.

CakePHP 2 - Facebook integration

Trying to add Facebook login / registration to a site I'm working on.
Been following this tutorial http://www.startutorial.com/articles/view/34
After some tweaking (because I'm on CakePHP 2, while the tutorial is for 1.3), I managed to get it to run. (Basically I just need to pull the plugin from the branch)
Now, I'm having issues with 2 things:
How do I save the information? Right now, after I login, I just come back to the same page but instead of the Login button, it says "Teepusink is using ThisApp"
Also some of the documentation doesn't seem to match with the branch version. For example,
Facebook->registration(); ?>
is giving me an error. Should I even be using the branch version? Or how do I go about using the plugin for CakePHP 2?
Thank you,
Tee
Got this to work actually.
So I went into ConnectComponent.php, and noticed that somehow the User model isn't being "recognized" there.
Took a little digging, but this is what I did.
'Facebook.Connect' => array('model' => 'User')
Hope this helps someone.

cookies in winforms

I want to save user name and password in a cookie.mine is a win forms application.Please advice how can we do this.
Thanks
In win Forms you should use registry,files,databases.... not cookies, cookies for web applications that usually be displayed in web browsers.
I would suggest using a password protected SQLite database (see System.Data.SQLite) and storing whatever you want there.
Also, do remember to hash your passwords!
This is not supposed to be an answers - more of a comment. Apologies if I posted it in the wrong way:
I expect the person asking the question may be aware that this is not the optimal way to store info in a winforms app. I would also like to know how to do this as a possible way of passing information from a website to a desktop app? For example you want the same app to do different things depending on information pass to the app from the website.
I've found that you can Retrieve Query String Information in a ClickOnce Application (http://msdn.microsoft.com/en-us/library/ms172242.aspx) which allows you to pass information from a site to an app. I want to know if cookies could also be used to do this.
I suspect it would be difficult and not practical in many situations to read info from a cookie in this way. One way I can think of doing this is putting a GUID in a cookie and also hardcoing that GUID into the app and running a find in files over the computer to find it. I realise that's a very ugly method but I would like to know what's possible.
I suppose another way might be to embeded a Webbrowser control in a winforms app and get the Webbrowser control to load a page containing JavaScript which reads that cookie. You would then need some way of passing that back to the .NET code though?
First, we can't use Cookies in WinForm applications.. it's a Web side functionality, but you can do something else..
For instance, once I had to do the same thing... to save the latest user connected to the application. I did it with a database (I prefere database, because txt files are not that safe.. we can erase them by mistake..)
So I suggest to save the username (and password in your case) on the database after every Connection event.
Hope that was usefull.

Obtaining MS Ribbon UI - Office UI Licensing Site - Page Cannot Be Found?

Can anyone actually download the RibbonControlsLibrary from the MS Office UI Fluent Site? (http://msdn.microsoft.com/en-us/office/aa973809.aspx)
I fill in the form, sign it, enter a name of my application (test) and it then redirects to a page saying "Page Cannot Be Found" from the following URL http://microsoftio.partnersalesresources.com/officeUI/license/ .
I can't seem to get the Ribbon UI from MS!
Anyone know what might be going on here?
Thanks
Here's a download link I found, check it out:
http://daisy-trac.cvsdude.com/tobi/export/129/trunk/tobiapp/ExternalLibs/RibbonControlsLibrary.dll
Download at your own risk
[Update]
According to Tometzky who checked the Digital Signature, the file is safe to download and use.
There is a "site feedback" link in Office UI Licensing page. I'd recommend using it.
Looks like they are aware and working on it.
Quoted from http://wpf.codeplex.com/wiki/comments/view?title=Home
I spoke to the Office Licensing team
about this and this is what they had
to say: "Yes, unfortunately our web
site hosting group has reorganized
some of the sites and pages on the
backend and unfortunately our ribbon
UI licensing pages got disconnected.
They are working to remedy the
situation and we hope to have the
pages back up very soon." I will post
back here as soon as I hear that the
page is back up. I apologize for the
delay.
yesterday by SamanthaMSFT
I've got it from http://docs.fairwaydev.com/misc/wpftoolkit/
. It appears to be the official one as well, since the site is down.

Resources