function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
JohannesBorrmanJohannesBorrman 

Site / Portal

For testing i've programmed a vf page which inserts some data into a custom object. So far so good ...

 

I've tried to make the site visible only via authentification via portal login. Auth works well but when i opened the site url it gave me access without login even when there were no pages assigned in the site config page (Site Visualforce Page and Site Standard Pages settings without any page assignment).

 

Is this the wanted behaviour? I thought the site could stay active. In my case i don't need any public space on my site only the authenticated area but i'm a bit confused now as i'm follwed the instructions in the Force.com Developer Guide (page 453, 5. ...) ...

 

 

 

 
Best Answer chosen by Admin (Salesforce Developers) 
BulentBulent

When you login to portal via sites you preserve your site domain name.

I'm guessing you are still authenticated with the portal and thought you are accessing the page publicly. 

Try browsing this url (<yoursiteurl>/secur/logout.jsp) first then try again.